constant

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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