Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type EventBus ¶
type EventBus interface { Publisher Subscriber Controller }
type Handler ¶
Handler 因为会导致重复订阅,所以必须用interface的形式 type Handler = func(string, context.Context, ...interface{}) error
type HandlerFunc ¶
type Hook ¶
type Hook interface { // 发布前回调 Before(topic string, ctx *memstore.Store, args ...interface{}) error // 同步完成时回调 AfterSync(topic string, ctx *memstore.Store, args ...interface{}) // 全部完成时回调 After(topic string, ctx *memstore.Store, args ...interface{}) // 错误时回调 Error(topic string, ctx *memstore.Store, err error, args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.