Help us shape the future of Go! Take the 2026 Go Developer Survey

registrytype

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GQLOnChain  = "ON_CHAIN"
	GQLOffChain = "OFF_CHAIN"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type string

Type is the normalised registry type stored in context.yaml.

const (
	OnChain  Type = "on-chain"
	OffChain Type = "off-chain"
	Unknown  Type = "unknown"
)

func FromGQL

func FromGQL(gqlType string, log *zerolog.Logger) Type

FromGQL maps a GraphQL registry type to the normalised context.yaml value.

func Parse

func Parse(raw string) (Type, error)

Parse converts a raw type string from context.yaml to a Type. Only the canonical values written by FromGQL are accepted; anything else errors.

Jump to

Keyboard shortcuts

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