app

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*common.Inject
	M sync.Map
}

func Initialize added in v1.4.0

func Initialize(i *common.Inject) *App

func (*App) Get added in v1.4.0

func (x *App) Get(key string) (*cron.Cron, bool)

func (*App) GetState added in v1.4.0

func (x *App) GetState(key string) []cron.Entry

func (*App) Ping added in v1.4.0

func (x *App) Ping() (err error)

func (*App) Remove

func (x *App) Remove(key string)

func (*App) Run

func (x *App) Run() (err error)

func (*App) Set

func (x *App) Set(key string, option common.ScheduleOption) (err error)

func (*App) SetJob added in v1.4.0

func (x *App) SetJob(key string, c *cron.Cron, index int, job common.ScheduleJob) (err error)

func (*App) State

func (x *App) State() (err error)

Jump to

Keyboard shortcuts

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