task

package
v0.0.0-...-acc2fd2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2023 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL