Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCron ¶
type ClientCron struct {
// contains filtered or unexported fields
}
func NewClientCron ¶
func NewClientCron() *ClientCron
func (*ClientCron) AddJob ¶
func (a *ClientCron) AddJob(name string, spec time.Duration, fixTime string, handler CronHandler)
type CronHandler ¶
type CronRuntime ¶
type CronRuntime struct {
// contains filtered or unexported fields
}
func NewCronRuntime ¶
func NewCronRuntime(c *ClientCron, shutdownTime time.Duration, l zerolog.Logger) (*CronRuntime, error)
func (*CronRuntime) AddHandler ¶
func (e *CronRuntime) AddHandler(name string, spec time.Duration, h CronHandler)
func (*CronRuntime) AddHandlerFixTime ¶
func (e *CronRuntime) AddHandlerFixTime(name string, fixTime string, h CronHandler)
func (*CronRuntime) Run ¶
func (e *CronRuntime) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.