constant

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 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 Constant

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

type IdentityEnriched

type IdentityEnriched string // Always "identity.enriched"

func (IdentityEnriched) Default

func (c IdentityEnriched) Default() IdentityEnriched

func (IdentityEnriched) MarshalJSON

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

type IdentityQualified

type IdentityQualified string // Always "identity.qualified"

func (IdentityQualified) Default

func (IdentityQualified) MarshalJSON

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

type IdentityResolved

type IdentityResolved string // Always "identity.resolved"

func (IdentityResolved) Default

func (c IdentityResolved) Default() IdentityResolved

func (IdentityResolved) MarshalJSON

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

type IdentitySessionFinalized

type IdentitySessionFinalized string // Always "identity.session.finalized"

func (IdentitySessionFinalized) Default

func (IdentitySessionFinalized) MarshalJSON

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

type IdentityValidated

type IdentityValidated string // Always "identity.validated"

func (IdentityValidated) Default

func (IdentityValidated) MarshalJSON

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

Jump to

Keyboard shortcuts

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