Default datasource and event system test

This commit is contained in:
Torkel Ödegaard
2015-01-09 11:01:37 +01:00
parent f99e1ba441
commit d562dcd90c
7 changed files with 140 additions and 97 deletions

View File

@ -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 {
}