cronera

package
v0.0.0-...-f47b430 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cronera

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

func New

func New() *Cronera

func (*Cronera) At

func (c *Cronera) At(st ...string) *Cronera

func (*Cronera) Day

func (c *Cronera) Day() *Cronera

func (*Cronera) Do

func (c *Cronera) Do(ctx context.Context, taskFunc any, args ...any) (<-chan *Signal, error)

func (*Cronera) Every

func (c *Cronera) Every(gap int64) *Cronera

func (*Cronera) MustExec

func (c *Cronera) MustExec(toteExecNo int64) *Cronera

func (*Cronera) StartDate

func (c *Cronera) StartDate(d string) *Cronera

type Signal

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

Signal represents the event sent from the cronera. Before and after the execution of the taskFunc a signal will be generated and sent through a channel.

type Status

type Status string
var (
	StatusJobProvisioned Status = "Job has been provisioned"
	StatusTaskSuccessful Status = "Task has run successfully. Task serial no: %v"
)

Jump to

Keyboard shortcuts

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