constant

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 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

type AppVersionSummary string // Always "app_version_summary"

func (AppVersionSummary) Default

func (AppVersionSummary) MarshalJSON

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

type AwsUsEast1a

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

func (AwsUsEast1a) Default

func (c AwsUsEast1a) Default() AwsUsEast1a

func (AwsUsEast1a) MarshalJSON

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

type Constant

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

type DeploymentState

type DeploymentState string // Always "deployment_state"

func (DeploymentState) Default

func (c DeploymentState) Default() DeploymentState

func (DeploymentState) MarshalJSON

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

type Error

type Error string // Always "error"

func (Error) Default

func (c Error) Default() Error

func (Error) MarshalJSON

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

type InvocationState

type InvocationState string // Always "invocation_state"

func (InvocationState) Default

func (c InvocationState) Default() InvocationState

func (InvocationState) MarshalJSON

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 ManagedAuthState added in v0.31.1

type ManagedAuthState string // Always "managed_auth_state"

func (ManagedAuthState) Default added in v0.31.1

func (c ManagedAuthState) Default() ManagedAuthState

func (ManagedAuthState) MarshalJSON added in v0.31.1

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

type SseHeartbeat

type SseHeartbeat string // Always "sse_heartbeat"

func (SseHeartbeat) Default

func (c SseHeartbeat) Default() SseHeartbeat

func (SseHeartbeat) MarshalJSON

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

Jump to

Keyboard shortcuts

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