Documentation ¶
Index ¶
- func Dispatch(evt interface{})
- func SetDispatcher(disp Dispatcher)
- type Dispatcher
- type MigrationEndedEvent
- type MigrationStartedEvent
- type MigrationsEndedEvent
- type MigrationsStartedEvent
- type QueryExecutedEvent
- type TransactionBeginningEvent
- type TransactionCommittedEvent
- type TransactionRolledBackEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dispatcher ¶
type Dispatcher interface {
Publish(evt interface{})
}
Dispatcher is an interface for event dispatcher
type MigrationEndedEvent ¶
type MigrationEndedEvent struct {
SQL string
}
type MigrationStartedEvent ¶
type MigrationStartedEvent struct {
SQL string
}
type MigrationsEndedEvent ¶
type MigrationsEndedEvent struct{}
type MigrationsStartedEvent ¶
type MigrationsStartedEvent struct{}
type QueryExecutedEvent ¶
QueryExecutedEvent each SQL query executed by your application will publish a QueryExecutedEvent
type TransactionBeginningEvent ¶
type TransactionBeginningEvent struct{}
TransactionBeginningEvent fired when a new transaction started
type TransactionCommittedEvent ¶
type TransactionCommittedEvent struct{}
TransactionCommittedEvent fired when a transaction has been committed
type TransactionRolledBackEvent ¶
type TransactionRolledBackEvent struct{}
TransactionRolledBackEvent fired when a transaction has been rollback
Click to show internal directories.
Click to hide internal directories.