event

package
v0.0.0-...-aac4589 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedEventFormat = regexp.MustCompile(`^[a-zA-Z]+$`)

AllowedEventFormat defines the allowed format for an event

View Source
var StateEventName = Name("TestState")

StateEventName is the name of the event used to emit state information

Functions

This section is empty.

Types

type ErrQueryFieldHasZeroValue

type ErrQueryFieldHasZeroValue struct {
	QueryField QueryField
}

ErrQueryFieldHasZeroValue is returned when a QueryFields failed validation due to a QueryField with a zero value (this is unexpected and forbidden).

func (ErrQueryFieldHasZeroValue) Error

func (err ErrQueryFieldHasZeroValue) Error() string

type ErrQueryFieldIsAlreadySet

type ErrQueryFieldIsAlreadySet struct {
	FieldValue interface{}
	QueryField QueryField
}

ErrQueryFieldIsAlreadySet is returned when QueryFields failed validation due to multiple QueryField which modifies the same field (this is unexpected and forbidden).

func (ErrQueryFieldIsAlreadySet) Error

func (err ErrQueryFieldIsAlreadySet) Error() string

type Name

type Name string

Name is a custom type which represents the name of an event

func (Name) Validate

func (e Name) Validate() error

Validate validates that the event name conforms with the framework API

type Query

type Query struct {
	JobID            types.JobID
	EventNames       []Name
	EmittedStartTime time.Time
	EmittedEndTime   time.Time
}

Query wraps information that are used to build event queries for all type of event objects

type QueryField

type QueryField interface{}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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