triggers

package
v0.0.1-prerelease9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edge

func Edge(e core.Edge, triggers ...Trigger) core.Edge

Edge returns a triggerable edge implementations which on a call to RunTriggers runs all the provided triggers passing the edge as an argument.

Types

type Trigger

type Trigger interface {
	Run(context.Context, core.Edge)
}

Trigger is a type with a single method Run which takes a context and an Edge implementation. The triggers package expects Run to block until the context provided is cancelled.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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