cron_trigger

package
v0.0.0-...-f514c2e Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

CRON Trigger

This CRON trigger is based on github.com/robfig/cron. It differs from the default CRON because it includes seconds, much like the Quartz CRON commonly used in Java.

The CRON Trigger by default will be triggered in the machines local time.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Specification string `toml:"specification"`
}

type Trigger

type Trigger struct {
	RequestChannel chan *domain.Request
	// contains filtered or unexported fields
}

func NewTrigger

func NewTrigger() *Trigger

func (*Trigger) Close

func (t *Trigger) Close() error

func (*Trigger) Init

func (t *Trigger) Init(stub domain.Stub, config []byte) error

func (*Trigger) NextMessage

func (t *Trigger) NextMessage() (tag string, message map[string]interface{}, err error)

func (*Trigger) Respond

func (t *Trigger) Respond(tag string, response map[string]interface{}, err error) error

Jump to

Keyboard shortcuts

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