trigger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaprSubTrigger

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

func NewDaprSubTrigger

func NewDaprSubTrigger(cfg config.Config) (*DaprSubTrigger, error)

func (*DaprSubTrigger) Start

func (t *DaprSubTrigger) Start() error

func (*DaprSubTrigger) Stop

func (t *DaprSubTrigger) Stop() error

func (*DaprSubTrigger) WaitForTrigger

func (t *DaprSubTrigger) WaitForTrigger() <-chan TriggeredBy

type Trigger

type Trigger interface {
	WaitForTrigger() <-chan TriggeredBy
	Start() error
	Stop() error
}

type TriggeredBy

type TriggeredBy string
var TriggeredByDaprSub TriggeredBy = "DaprSub"
var TriggeredByTicker TriggeredBy = "Ticker"

Jump to

Keyboard shortcuts

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