cron

package
v0.0.0-...-47f30e4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider = wire.NewSet(NewCron)

Functions

This section is empty.

Types

type Cron

type Cron struct {
	// contains filtered or unexported fields
}

func NewCron

func NewCron(logger log.Logger) *Cron

func (*Cron) AddCron

func (c *Cron) AddCron(exp string, job func()) (cron.EntryID, error)

func (*Cron) DelCron

func (c *Cron) DelCron(id cron.EntryID)

func (*Cron) Run

func (c *Cron) Run()

func (*Cron) Start

func (c *Cron) Start(ctx context.Context) error

func (*Cron) Stop

func (c *Cron) Stop(ctx context.Context) error

type SelfLog

type SelfLog struct {
	// contains filtered or unexported fields
}

func NewSelfLog

func NewSelfLog(log log.Logger) *SelfLog

func (*SelfLog) Printf

func (l *SelfLog) Printf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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