Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task interface { Name() string Freq() (runTime time.Duration, tickTime time.Duration) Run(ctx context.Context) error }
func NewNotifyTask ¶
func NewNotifyTask(cfg *config.TelegramCfg, tb domain.TelegramUseCase) Task
func NewReplyTask ¶
func NewReplyTask(cfg *config.TelegramCfg, tb domain.TelegramUseCase) Task
Click to show internal directories.
Click to hide internal directories.