Documentation ¶
Index ¶
- func CreateTask[Data DataEntity](c Context, m Models, task *Task[Data]) error
- func QueryTask[Data DataEntity](c Context, m Models, task *Task[Data]) error
- func QueryTaskState(c Context, db *gorm.DB, m Models, taskID string) (*string, error)
- func UpdateTask[Data DataEntity](c Context, m Models, task *Task[Data], fsm FSM[Data]) error
- type Base
- type IBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
func CreateTask[Data DataEntity](c Context, m Models, task *Task[Data]) error
func QueryTaskState ¶
func UpdateTask ¶
func UpdateTask[Data DataEntity](c Context, m Models, task *Task[Data], fsm FSM[Data]) error
Types ¶
type Base ¶
type Base[Data DataEntity] struct { Config *util.Config Models db.IDB mq.IMQ FSM[Data] GenID func() string // ID Generator DEBUG bool }
func (*Base[Data]) RegisterDB ¶
func (*Base[Data]) RegisterFSM ¶
func (b *Base[Data]) RegisterFSM(fsm FSM[Data])
func (*Base[Data]) RegisterGenerator ¶
func (*Base[Data]) RegisterMQ ¶
func (*Base[Data]) RegisterModel ¶
Click to show internal directories.
Click to hide internal directories.