script

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCronValue = "0 * * * * *"
	DefaultTimeout   = time.Hour
)

Variables

View Source
var (
	CronParser = cron.NewParser(cron.Second | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)
)

Functions

This section is empty.

Types

type Script

type Script struct {
	Name       string
	Body       []byte
	CronValue  string
	Timeout    time.Duration
	Ignore     bool
	Channels   []string
	IsTest     bool
	TestTarget string
}

func New added in v0.1.0

func New() *Script

func (*Script) Hash

func (s *Script) Hash() string

func (*Script) ParseMeta

func (s *Script) ParseMeta() error

Jump to

Keyboard shortcuts

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