|
123456789101112131415161718192021222324 |
- package tickevent
-
- import (
- tickevent "gitlink.org.cn/cloudream/common/pkgs/tickevent"
- mydb "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/db2"
- "gitlink.org.cn/cloudream/jcs-pub/scanner/internal/event"
- )
-
- type ExecuteArgs struct {
- EventExecutor *event.Executor
- DB *mydb.DB
- }
-
- type StartOption = tickevent.StartOption
-
- type Executor = tickevent.Executor[ExecuteArgs]
-
- type ExecuteContext = tickevent.ExecuteContext[ExecuteArgs]
-
- type Event = tickevent.TickEvent[ExecuteArgs]
-
- func NewExecutor(args ExecuteArgs) Executor {
- return tickevent.NewExecutor(args)
- }
|