event

package
v0.0.0-...-27d2001 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanEvent

type PlanEvent struct {
	// Type holds the type of the event: created / updated / deleted
	Type                    string `yaml:"type" json:"type"`
	domain.JobSpecification `yaml:"data" json:"data"`
}

type Publisher

type Publisher func(msg interface{}, topic TopicType) error

type ResultEvent

type ResultEvent struct{}

type Subscriber

type Subscriber[T any] func(topic TopicType) (chan T, error)

type TopicType

type TopicType string
const (
	TopicTypePlan   TopicType = "runtime.configuration"
	TopicTypeResult TopicType = "job.result"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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