mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 10:02:26 +08:00
Default datasource and event system test
This commit is contained in:
@ -38,16 +38,8 @@ type DataSource struct {
|
||||
Updated time.Time
|
||||
}
|
||||
|
||||
type GetDataSourcesQuery struct {
|
||||
AccountId int64
|
||||
Result []*DataSource
|
||||
}
|
||||
|
||||
type GetDataSourceByIdQuery struct {
|
||||
Id int64
|
||||
AccountId int64
|
||||
Result DataSource
|
||||
}
|
||||
// ----------------------
|
||||
// COMMANDS
|
||||
|
||||
type AddDataSourceCommand struct {
|
||||
AccountId int64
|
||||
@ -58,6 +50,8 @@ type AddDataSourceCommand struct {
|
||||
Password string
|
||||
Database string
|
||||
User string
|
||||
|
||||
Result *DataSource
|
||||
}
|
||||
|
||||
type UpdateDataSourceCommand struct {
|
||||
@ -76,3 +70,22 @@ type DeleteDataSourceCommand struct {
|
||||
Id int64
|
||||
AccountId int64
|
||||
}
|
||||
|
||||
// ---------------------
|
||||
// QUERIES
|
||||
|
||||
type GetDataSourcesQuery struct {
|
||||
AccountId int64
|
||||
Result []*DataSource
|
||||
}
|
||||
|
||||
type GetDataSourceByIdQuery struct {
|
||||
Id int64
|
||||
AccountId int64
|
||||
Result DataSource
|
||||
}
|
||||
|
||||
// ---------------------
|
||||
// EVENTS
|
||||
type DataSourceCreatedEvent struct {
|
||||
}
|
||||
|
Reference in New Issue
Block a user