constant

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 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 AppVersionSummary added in v0.6.0

type AppVersionSummary string // Always "app_version_summary"

func (AppVersionSummary) Default added in v0.6.0

func (AppVersionSummary) MarshalJSON added in v0.6.0

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

type AwsUsEast1a added in v0.6.0

type AwsUsEast1a string // Always "aws.us-east-1a"

func (AwsUsEast1a) Default added in v0.6.0

func (c AwsUsEast1a) Default() AwsUsEast1a

func (AwsUsEast1a) MarshalJSON added in v0.6.0

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

type Constant

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

type DeploymentState added in v0.6.0

type DeploymentState string // Always "deployment_state"

func (DeploymentState) Default added in v0.6.0

func (c DeploymentState) Default() DeploymentState

func (DeploymentState) MarshalJSON added in v0.6.0

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

type Error added in v0.6.0

type Error string // Always "error"

func (Error) Default added in v0.6.0

func (c Error) Default() Error

func (Error) MarshalJSON added in v0.6.0

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

type InvocationState added in v0.6.0

type InvocationState string // Always "invocation_state"

func (InvocationState) Default added in v0.6.0

func (c InvocationState) Default() InvocationState

func (InvocationState) MarshalJSON added in v0.6.0

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

type Log

type Log string // Always "log"

func (Log) Default

func (c Log) Default() Log

func (Log) MarshalJSON

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

type SseHeartbeat added in v0.6.2

type SseHeartbeat string // Always "sse_heartbeat"

func (SseHeartbeat) Default added in v0.6.2

func (c SseHeartbeat) Default() SseHeartbeat

func (SseHeartbeat) MarshalJSON added in v0.6.2

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

Jump to

Keyboard shortcuts

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