constant

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueOf

func ValueOf[T Constant[T]]() T

ValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf[constant.Foo]()

Types

type Analyze

type Analyze string // Always "analyze"

func (Analyze) Default

func (c Analyze) Default() Analyze

func (Analyze) MarshalJSON

func (c Analyze) MarshalJSON() ([]byte, error)

type Classify added in v0.7.0

type Classify string // Always "classify"

func (Classify) Default added in v0.7.0

func (c Classify) Default() Classify

func (Classify) MarshalJSON added in v0.7.0

func (c Classify) MarshalJSON() ([]byte, error)

type Constant

type Constant[T any] interface {
	Default() T
}

type Enrich

type Enrich string // Always "enrich"

func (Enrich) Default

func (c Enrich) Default() Enrich

func (Enrich) MarshalJSON

func (c Enrich) MarshalJSON() ([]byte, error)

type Extract added in v0.2.0

type Extract string // Always "extract"

func (Extract) Default added in v0.2.0

func (c Extract) Default() Extract

func (Extract) MarshalJSON added in v0.2.0

func (c Extract) MarshalJSON() ([]byte, error)

type Join

type Join string // Always "join"

func (Join) Default

func (c Join) Default() Join

func (Join) MarshalJSON

func (c Join) MarshalJSON() ([]byte, error)

type Parse added in v0.10.0

type Parse string // Always "parse"

func (Parse) Default added in v0.10.0

func (c Parse) Default() Parse

func (Parse) MarshalJSON added in v0.10.0

func (c Parse) MarshalJSON() ([]byte, error)

type PayloadShaping

type PayloadShaping string // Always "payload_shaping"

func (PayloadShaping) Default

func (c PayloadShaping) Default() PayloadShaping

func (PayloadShaping) MarshalJSON

func (c PayloadShaping) MarshalJSON() ([]byte, error)

type Send

type Send string // Always "send"

func (Send) Default

func (c Send) Default() Send

func (Send) MarshalJSON

func (c Send) MarshalJSON() ([]byte, error)

type Split

type Split string // Always "split"

func (Split) Default

func (c Split) Default() Split

func (Split) MarshalJSON

func (c Split) MarshalJSON() ([]byte, error)

type Transform

type Transform string // Always "transform"

func (Transform) Default

func (c Transform) Default() Transform

func (Transform) MarshalJSON

func (c Transform) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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