constant

package
v0.0.2 Latest Latest
Warning

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

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