crond

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scheduler *gocron.Scheduler

Functions

func RegisterCron added in v0.1.2

func RegisterCron(rg CronRegister)

Types

type CronRegister added in v0.1.2

type CronRegister func(sch *gocron.Scheduler, ctx context.Context)

type Service

type Service struct {
}

func (Service) Register

func (s Service) Register(app *framework.App) error

Register service when app starting, before http server start you can configure service, prepare global vars etc. running at main goroutine

Jump to

Keyboard shortcuts

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