Documentation ¶
Index ¶
- Constants
- func Reload() error
- func Run() error
- func Stop() error
- type App
- type MysqlHandler
- func (handler *MysqlHandler) Execute() error
- func (handler *MysqlHandler) HandleDirect(ctx *context.BizContext) error
- func (handler *MysqlHandler) HandleInspect(ctx *context.BizContext) bool
- func (handler *MysqlHandler) HandleMqMessage(ctx *context.BizContext, msg *syncmq.TopicMessage) error
- func (handler *MysqlHandler) LoadConfig(conf config.MysqlTaskConfig) error
- type TaskHandler
Constants ¶
View Source
const ( AppStateRunning = 1 AppStateReload = 2 AppStateStop = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MysqlHandler ¶
type MysqlHandler struct {
// contains filtered or unexported fields
}
func NewMysqlHandler ¶
func NewMysqlHandler(ctx *context.BaseContext) *MysqlHandler
func (*MysqlHandler) HandleDirect ¶
func (handler *MysqlHandler) HandleDirect(ctx *context.BizContext) error
syncDirect implement
func (*MysqlHandler) HandleInspect ¶
func (handler *MysqlHandler) HandleInspect(ctx *context.BizContext) bool
inspect implement
func (*MysqlHandler) HandleMqMessage ¶
func (handler *MysqlHandler) HandleMqMessage(ctx *context.BizContext, msg *syncmq.TopicMessage) error
syncMq implement
func (*MysqlHandler) LoadConfig ¶
func (handler *MysqlHandler) LoadConfig(conf config.MysqlTaskConfig) error
加载配置
Click to show internal directories.
Click to hide internal directories.