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

output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOpenAPISpecJSON

func GetOpenAPISpecJSON() ([]byte, error)

GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.

Types

type Registration

type Registration struct {
	State *RegistrationState `form:"state,omitempty" json:"state,omitempty"`
}

#/components/schemas/Registration

func (*Registration) ApplyDefaults

func (s *Registration) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type RegistrationState

type RegistrationState struct {
	// contains filtered or unexported fields
}

func (*RegistrationState) ApplyDefaults

func (t *RegistrationState) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (RegistrationState) AsRegistrationStateOneOf0

func (t RegistrationState) AsRegistrationStateOneOf0() (RegistrationStateOneOf0, error)

AsRegistrationStateOneOf0 returns the union data inside the RegistrationState as a RegistrationStateOneOf0.

func (RegistrationState) AsRegistrationStateOneOf1

func (t RegistrationState) AsRegistrationStateOneOf1() (RegistrationStateOneOf1, error)

AsRegistrationStateOneOf1 returns the union data inside the RegistrationState as a RegistrationStateOneOf1.

func (RegistrationState) AsRegistrationStateOneOf2

func (t RegistrationState) AsRegistrationStateOneOf2() (RegistrationStateOneOf2, error)

AsRegistrationStateOneOf2 returns the union data inside the RegistrationState as a RegistrationStateOneOf2.

func (RegistrationState) AsRegistrationStateOneOf3

func (t RegistrationState) AsRegistrationStateOneOf3() (RegistrationStateOneOf3, error)

AsRegistrationStateOneOf3 returns the union data inside the RegistrationState as a RegistrationStateOneOf3.

func (*RegistrationState) FromRegistrationStateOneOf0

func (t *RegistrationState) FromRegistrationStateOneOf0(v RegistrationStateOneOf0) error

FromRegistrationStateOneOf0 overwrites any union data inside the RegistrationState as the provided RegistrationStateOneOf0.

func (*RegistrationState) FromRegistrationStateOneOf1

func (t *RegistrationState) FromRegistrationStateOneOf1(v RegistrationStateOneOf1) error

FromRegistrationStateOneOf1 overwrites any union data inside the RegistrationState as the provided RegistrationStateOneOf1.

func (*RegistrationState) FromRegistrationStateOneOf2

func (t *RegistrationState) FromRegistrationStateOneOf2(v RegistrationStateOneOf2) error

FromRegistrationStateOneOf2 overwrites any union data inside the RegistrationState as the provided RegistrationStateOneOf2.

func (*RegistrationState) FromRegistrationStateOneOf3

func (t *RegistrationState) FromRegistrationStateOneOf3(v RegistrationStateOneOf3) error

FromRegistrationStateOneOf3 overwrites any union data inside the RegistrationState as the provided RegistrationStateOneOf3.

func (RegistrationState) MarshalJSON

func (t RegistrationState) MarshalJSON() ([]byte, error)

func (*RegistrationState) MergeRegistrationStateOneOf0

func (t *RegistrationState) MergeRegistrationStateOneOf0(v RegistrationStateOneOf0) error

MergeRegistrationStateOneOf0 performs a merge with any union data inside the RegistrationState, using the provided RegistrationStateOneOf0.

func (*RegistrationState) MergeRegistrationStateOneOf1

func (t *RegistrationState) MergeRegistrationStateOneOf1(v RegistrationStateOneOf1) error

MergeRegistrationStateOneOf1 performs a merge with any union data inside the RegistrationState, using the provided RegistrationStateOneOf1.

func (*RegistrationState) MergeRegistrationStateOneOf2

func (t *RegistrationState) MergeRegistrationStateOneOf2(v RegistrationStateOneOf2) error

MergeRegistrationStateOneOf2 performs a merge with any union data inside the RegistrationState, using the provided RegistrationStateOneOf2.

func (*RegistrationState) MergeRegistrationStateOneOf3

func (t *RegistrationState) MergeRegistrationStateOneOf3(v RegistrationStateOneOf3) error

MergeRegistrationStateOneOf3 performs a merge with any union data inside the RegistrationState, using the provided RegistrationStateOneOf3.

func (*RegistrationState) UnmarshalJSON

func (t *RegistrationState) UnmarshalJSON(b []byte) error

type RegistrationStateOneOf0

type RegistrationStateOneOf0 string

#/components/schemas/Registration/properties/state/oneOf/0

const (
	Undefined RegistrationStateOneOf0 = "undefined"
)

type RegistrationStateOneOf1

type RegistrationStateOneOf1 string

#/components/schemas/Registration/properties/state/oneOf/1

const (
	Registered RegistrationStateOneOf1 = "registered"
)

type RegistrationStateOneOf2

type RegistrationStateOneOf2 string

#/components/schemas/Registration/properties/state/oneOf/2

const (
	Pending RegistrationStateOneOf2 = "pending"
)

type RegistrationStateOneOf3

type RegistrationStateOneOf3 string

#/components/schemas/Registration/properties/state/oneOf/3

const (
	Active RegistrationStateOneOf3 = "active"
)

Jump to

Keyboard shortcuts

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