types

package
v6.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasString

type AliasString string

type AnyExample

type AnyExample struct {
	Value interface{} `json:"value"`
}

func (AnyExample) MarshalYAML

func (o AnyExample) MarshalYAML() (interface{}, error)

func (*AnyExample) UnmarshalYAML

func (o *AnyExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type BearerTokenAliasExample

type BearerTokenAliasExample bearertoken.Token

func (BearerTokenAliasExample) MarshalText

func (a BearerTokenAliasExample) MarshalText() ([]byte, error)

func (BearerTokenAliasExample) MarshalYAML

func (a BearerTokenAliasExample) MarshalYAML() (interface{}, error)

func (BearerTokenAliasExample) String

func (a BearerTokenAliasExample) String() string

func (*BearerTokenAliasExample) UnmarshalText

func (a *BearerTokenAliasExample) UnmarshalText(data []byte) error

func (*BearerTokenAliasExample) UnmarshalYAML

func (a *BearerTokenAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type BearerTokenExample

type BearerTokenExample struct {
	Value bearertoken.Token `json:"value"`
}

func (BearerTokenExample) MarshalYAML

func (o BearerTokenExample) MarshalYAML() (interface{}, error)

func (*BearerTokenExample) UnmarshalYAML

func (o *BearerTokenExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type BinaryAliasExample

type BinaryAliasExample []byte

func (BinaryAliasExample) MarshalText added in v6.6.0

func (a BinaryAliasExample) MarshalText() ([]byte, error)

func (BinaryAliasExample) MarshalYAML added in v6.6.0

func (a BinaryAliasExample) MarshalYAML() (interface{}, error)

func (BinaryAliasExample) String added in v6.6.0

func (a BinaryAliasExample) String() string

func (*BinaryAliasExample) UnmarshalText added in v6.6.0

func (a *BinaryAliasExample) UnmarshalText(data []byte) error

func (*BinaryAliasExample) UnmarshalYAML added in v6.6.0

func (a *BinaryAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type BinaryExample

type BinaryExample struct {
	Value []byte `json:"value"`
}

func (BinaryExample) MarshalYAML

func (o BinaryExample) MarshalYAML() (interface{}, error)

func (*BinaryExample) UnmarshalYAML

func (o *BinaryExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type BooleanAliasExample

type BooleanAliasExample bool

type BooleanExample

type BooleanExample struct {
	Value bool `json:"value"`
}

func (BooleanExample) MarshalYAML

func (o BooleanExample) MarshalYAML() (interface{}, error)

func (*BooleanExample) UnmarshalYAML

func (o *BooleanExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type DateTimeAliasExample

type DateTimeAliasExample datetime.DateTime

func (DateTimeAliasExample) MarshalText

func (a DateTimeAliasExample) MarshalText() ([]byte, error)

func (DateTimeAliasExample) MarshalYAML

func (a DateTimeAliasExample) MarshalYAML() (interface{}, error)

func (DateTimeAliasExample) String

func (a DateTimeAliasExample) String() string

func (*DateTimeAliasExample) UnmarshalText

func (a *DateTimeAliasExample) UnmarshalText(data []byte) error

func (*DateTimeAliasExample) UnmarshalYAML

func (a *DateTimeAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type DateTimeExample

type DateTimeExample struct {
	Value datetime.DateTime `json:"value"`
}

func (DateTimeExample) MarshalYAML

func (o DateTimeExample) MarshalYAML() (interface{}, error)

func (*DateTimeExample) UnmarshalYAML

func (o *DateTimeExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type DoubleAliasExample

type DoubleAliasExample float64

type DoubleExample

type DoubleExample struct {
	Value float64 `json:"value"`
}

func (DoubleExample) MarshalYAML

func (o DoubleExample) MarshalYAML() (interface{}, error)

func (*DoubleExample) UnmarshalYAML

func (o *DoubleExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type EmptyObjectExample

type EmptyObjectExample struct{}

func (EmptyObjectExample) MarshalYAML

func (o EmptyObjectExample) MarshalYAML() (interface{}, error)

func (*EmptyObjectExample) UnmarshalYAML

func (o *EmptyObjectExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type Enum

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

func New_Enum

func New_Enum(value Enum_Value) Enum

func (Enum) IsUnknown

func (e Enum) IsUnknown() bool

IsUnknown returns false for all known variants of Enum and true otherwise.

func (Enum) MarshalText

func (e Enum) MarshalText() ([]byte, error)

func (Enum) String

func (e Enum) String() string

func (*Enum) UnmarshalText

func (e *Enum) UnmarshalText(data []byte) error

func (Enum) Value

func (e Enum) Value() Enum_Value

type EnumExample

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

func New_EnumExample

func New_EnumExample(value EnumExample_Value) EnumExample

func (EnumExample) IsUnknown

func (e EnumExample) IsUnknown() bool

IsUnknown returns false for all known variants of EnumExample and true otherwise.

func (EnumExample) MarshalText

func (e EnumExample) MarshalText() ([]byte, error)

func (EnumExample) String

func (e EnumExample) String() string

func (*EnumExample) UnmarshalText

func (e *EnumExample) UnmarshalText(data []byte) error

func (EnumExample) Value

func (e EnumExample) Value() EnumExample_Value

type EnumExample_Value

type EnumExample_Value string
const (
	EnumExample_ONE         EnumExample_Value = "ONE"
	EnumExample_TWO         EnumExample_Value = "TWO"
	EnumExample_ONE_HUNDRED EnumExample_Value = "ONE_HUNDRED"
	EnumExample_UNKNOWN     EnumExample_Value = "UNKNOWN"
)

func EnumExample_Values

func EnumExample_Values() []EnumExample_Value

EnumExample_Values returns all known variants of EnumExample.

type EnumFieldExample

type EnumFieldExample struct {
	Enum EnumExample `json:"enum"`
}

func (EnumFieldExample) MarshalYAML

func (o EnumFieldExample) MarshalYAML() (interface{}, error)

func (*EnumFieldExample) UnmarshalYAML

func (o *EnumFieldExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type Enum_Value

type Enum_Value string
const (
	Enum_ONE     Enum_Value = "ONE"
	Enum_TWO     Enum_Value = "TWO"
	Enum_UNKNOWN Enum_Value = "UNKNOWN"
)

func Enum_Values

func Enum_Values() []Enum_Value

Enum_Values returns all known variants of Enum.

type IntegerAliasExample

type IntegerAliasExample int

type IntegerExample

type IntegerExample struct {
	Value int `json:"value"`
}

func (IntegerExample) MarshalYAML

func (o IntegerExample) MarshalYAML() (interface{}, error)

func (*IntegerExample) UnmarshalYAML

func (o *IntegerExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type KebabCaseObjectExample

type KebabCaseObjectExample struct {
	KebabCasedField int `json:"kebab-cased-field"`
}

func (KebabCaseObjectExample) MarshalYAML

func (o KebabCaseObjectExample) MarshalYAML() (interface{}, error)

func (*KebabCaseObjectExample) UnmarshalYAML

func (o *KebabCaseObjectExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListAnyAliasExample

type ListAnyAliasExample []interface{}

type ListBearerTokenAliasExample

type ListBearerTokenAliasExample []bearertoken.Token

func (ListBearerTokenAliasExample) MarshalJSON

func (a ListBearerTokenAliasExample) MarshalJSON() ([]byte, error)

func (ListBearerTokenAliasExample) MarshalYAML

func (a ListBearerTokenAliasExample) MarshalYAML() (interface{}, error)

func (*ListBearerTokenAliasExample) UnmarshalJSON

func (a *ListBearerTokenAliasExample) UnmarshalJSON(data []byte) error

func (*ListBearerTokenAliasExample) UnmarshalYAML

func (a *ListBearerTokenAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListBinaryAliasExample

type ListBinaryAliasExample [][]byte

func (ListBinaryAliasExample) MarshalJSON added in v6.6.0

func (a ListBinaryAliasExample) MarshalJSON() ([]byte, error)

func (ListBinaryAliasExample) MarshalYAML added in v6.6.0

func (a ListBinaryAliasExample) MarshalYAML() (interface{}, error)

func (*ListBinaryAliasExample) UnmarshalJSON added in v6.6.0

func (a *ListBinaryAliasExample) UnmarshalJSON(data []byte) error

func (*ListBinaryAliasExample) UnmarshalYAML added in v6.6.0

func (a *ListBinaryAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListBooleanAliasExample

type ListBooleanAliasExample []bool

type ListDateTimeAliasExample

type ListDateTimeAliasExample []datetime.DateTime

func (ListDateTimeAliasExample) MarshalJSON

func (a ListDateTimeAliasExample) MarshalJSON() ([]byte, error)

func (ListDateTimeAliasExample) MarshalYAML

func (a ListDateTimeAliasExample) MarshalYAML() (interface{}, error)

func (*ListDateTimeAliasExample) UnmarshalJSON

func (a *ListDateTimeAliasExample) UnmarshalJSON(data []byte) error

func (*ListDateTimeAliasExample) UnmarshalYAML

func (a *ListDateTimeAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListDoubleAliasExample

type ListDoubleAliasExample []float64

type ListExample

type ListExample struct {
	Value []string `json:"value"`
}

func (ListExample) MarshalJSON

func (o ListExample) MarshalJSON() ([]byte, error)

func (ListExample) MarshalYAML

func (o ListExample) MarshalYAML() (interface{}, error)

func (*ListExample) UnmarshalJSON

func (o *ListExample) UnmarshalJSON(data []byte) error

func (*ListExample) UnmarshalYAML

func (o *ListExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListIntegerAliasExample

type ListIntegerAliasExample []int

type ListOptionalAnyAliasExample

type ListOptionalAnyAliasExample []*interface{}

type ListRidAliasExample

type ListRidAliasExample []rid.ResourceIdentifier

func (ListRidAliasExample) MarshalJSON

func (a ListRidAliasExample) MarshalJSON() ([]byte, error)

func (ListRidAliasExample) MarshalYAML

func (a ListRidAliasExample) MarshalYAML() (interface{}, error)

func (*ListRidAliasExample) UnmarshalJSON

func (a *ListRidAliasExample) UnmarshalJSON(data []byte) error

func (*ListRidAliasExample) UnmarshalYAML

func (a *ListRidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListSafeLongAliasExample

type ListSafeLongAliasExample []safelong.SafeLong

func (ListSafeLongAliasExample) MarshalJSON

func (a ListSafeLongAliasExample) MarshalJSON() ([]byte, error)

func (ListSafeLongAliasExample) MarshalYAML

func (a ListSafeLongAliasExample) MarshalYAML() (interface{}, error)

func (*ListSafeLongAliasExample) UnmarshalJSON

func (a *ListSafeLongAliasExample) UnmarshalJSON(data []byte) error

func (*ListSafeLongAliasExample) UnmarshalYAML

func (a *ListSafeLongAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ListStringAliasExample

type ListStringAliasExample []string

type ListUuidAliasExample

type ListUuidAliasExample []uuid.UUID

func (ListUuidAliasExample) MarshalJSON

func (a ListUuidAliasExample) MarshalJSON() ([]byte, error)

func (ListUuidAliasExample) MarshalYAML

func (a ListUuidAliasExample) MarshalYAML() (interface{}, error)

func (*ListUuidAliasExample) UnmarshalJSON

func (a *ListUuidAliasExample) UnmarshalJSON(data []byte) error

func (*ListUuidAliasExample) UnmarshalYAML

func (a *ListUuidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type LongFieldNameOptionalExample

type LongFieldNameOptionalExample struct {
	SomeLongName *string `json:"someLongName"`
}

func (LongFieldNameOptionalExample) MarshalYAML

func (o LongFieldNameOptionalExample) MarshalYAML() (interface{}, error)

func (*LongFieldNameOptionalExample) UnmarshalYAML

func (o *LongFieldNameOptionalExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapBearerTokenAliasExample

type MapBearerTokenAliasExample map[bearertoken.Token]bool

func (MapBearerTokenAliasExample) MarshalJSON

func (a MapBearerTokenAliasExample) MarshalJSON() ([]byte, error)

func (MapBearerTokenAliasExample) MarshalYAML

func (a MapBearerTokenAliasExample) MarshalYAML() (interface{}, error)

func (*MapBearerTokenAliasExample) UnmarshalJSON

func (a *MapBearerTokenAliasExample) UnmarshalJSON(data []byte) error

func (*MapBearerTokenAliasExample) UnmarshalYAML

func (a *MapBearerTokenAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapBinaryAliasExample

type MapBinaryAliasExample map[binary.Binary]bool

func (MapBinaryAliasExample) MarshalJSON

func (a MapBinaryAliasExample) MarshalJSON() ([]byte, error)

func (MapBinaryAliasExample) MarshalYAML

func (a MapBinaryAliasExample) MarshalYAML() (interface{}, error)

func (*MapBinaryAliasExample) UnmarshalJSON

func (a *MapBinaryAliasExample) UnmarshalJSON(data []byte) error

func (*MapBinaryAliasExample) UnmarshalYAML

func (a *MapBinaryAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapBooleanAliasExample

type MapBooleanAliasExample map[boolean.Boolean]bool

type MapDateTimeAliasExample

type MapDateTimeAliasExample map[datetime.DateTime]bool

func (MapDateTimeAliasExample) MarshalJSON

func (a MapDateTimeAliasExample) MarshalJSON() ([]byte, error)

func (MapDateTimeAliasExample) MarshalYAML

func (a MapDateTimeAliasExample) MarshalYAML() (interface{}, error)

func (*MapDateTimeAliasExample) UnmarshalJSON

func (a *MapDateTimeAliasExample) UnmarshalJSON(data []byte) error

func (*MapDateTimeAliasExample) UnmarshalYAML

func (a *MapDateTimeAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapDoubleAliasExample

type MapDoubleAliasExample map[float64]bool

type MapEnumExampleAlias

type MapEnumExampleAlias map[EnumExample]string

func (MapEnumExampleAlias) MarshalJSON

func (a MapEnumExampleAlias) MarshalJSON() ([]byte, error)

func (MapEnumExampleAlias) MarshalYAML

func (a MapEnumExampleAlias) MarshalYAML() (interface{}, error)

func (*MapEnumExampleAlias) UnmarshalJSON

func (a *MapEnumExampleAlias) UnmarshalJSON(data []byte) error

func (*MapEnumExampleAlias) UnmarshalYAML

func (a *MapEnumExampleAlias) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapExample

type MapExample struct {
	Value map[string]string `json:"value"`
}

func (MapExample) MarshalJSON

func (o MapExample) MarshalJSON() ([]byte, error)

func (MapExample) MarshalYAML

func (o MapExample) MarshalYAML() (interface{}, error)

func (*MapExample) UnmarshalJSON

func (o *MapExample) UnmarshalJSON(data []byte) error

func (*MapExample) UnmarshalYAML

func (o *MapExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapIntegerAliasExample

type MapIntegerAliasExample map[int]bool

type MapRidAliasExample

type MapRidAliasExample map[rid.ResourceIdentifier]bool

func (MapRidAliasExample) MarshalJSON

func (a MapRidAliasExample) MarshalJSON() ([]byte, error)

func (MapRidAliasExample) MarshalYAML

func (a MapRidAliasExample) MarshalYAML() (interface{}, error)

func (*MapRidAliasExample) UnmarshalJSON

func (a *MapRidAliasExample) UnmarshalJSON(data []byte) error

func (*MapRidAliasExample) UnmarshalYAML

func (a *MapRidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapSafeLongAliasExample

type MapSafeLongAliasExample map[safelong.SafeLong]bool

func (MapSafeLongAliasExample) MarshalJSON

func (a MapSafeLongAliasExample) MarshalJSON() ([]byte, error)

func (MapSafeLongAliasExample) MarshalYAML

func (a MapSafeLongAliasExample) MarshalYAML() (interface{}, error)

func (*MapSafeLongAliasExample) UnmarshalJSON

func (a *MapSafeLongAliasExample) UnmarshalJSON(data []byte) error

func (*MapSafeLongAliasExample) UnmarshalYAML

func (a *MapSafeLongAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type MapStringAliasExample

type MapStringAliasExample map[string]bool

type MapUuidAliasExample

type MapUuidAliasExample map[uuid.UUID]bool

func (MapUuidAliasExample) MarshalJSON

func (a MapUuidAliasExample) MarshalJSON() ([]byte, error)

func (MapUuidAliasExample) MarshalYAML

func (a MapUuidAliasExample) MarshalYAML() (interface{}, error)

func (*MapUuidAliasExample) UnmarshalJSON

func (a *MapUuidAliasExample) UnmarshalJSON(data []byte) error

func (*MapUuidAliasExample) UnmarshalYAML

func (a *MapUuidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ObjectExample

type ObjectExample struct {
	String       string             `json:"string"`
	Integer      int                `json:"integer"`
	DoubleValue  float64            `json:"doubleValue"`
	OptionalItem *string            `json:"optionalItem"`
	Items        []string           `json:"items"`
	Set          []string           `json:"set"`
	Map          map[string]string  `json:"map"`
	Alias        StringAliasExample `json:"alias"`
}

func (ObjectExample) MarshalJSON

func (o ObjectExample) MarshalJSON() ([]byte, error)

func (ObjectExample) MarshalYAML

func (o ObjectExample) MarshalYAML() (interface{}, error)

func (*ObjectExample) UnmarshalJSON

func (o *ObjectExample) UnmarshalJSON(data []byte) error

func (*ObjectExample) UnmarshalYAML

func (o *ObjectExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalAnyAliasExample

type OptionalAnyAliasExample struct {
	Value *interface{}
}

func (OptionalAnyAliasExample) MarshalJSON

func (a OptionalAnyAliasExample) MarshalJSON() ([]byte, error)

func (OptionalAnyAliasExample) MarshalYAML

func (a OptionalAnyAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalAnyAliasExample) UnmarshalJSON

func (a *OptionalAnyAliasExample) UnmarshalJSON(data []byte) error

func (*OptionalAnyAliasExample) UnmarshalYAML

func (a *OptionalAnyAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalBearerTokenAliasExample

type OptionalBearerTokenAliasExample struct {
	Value *bearertoken.Token
}

func (OptionalBearerTokenAliasExample) MarshalJSON added in v6.16.0

func (a OptionalBearerTokenAliasExample) MarshalJSON() ([]byte, error)

func (OptionalBearerTokenAliasExample) MarshalText

func (a OptionalBearerTokenAliasExample) MarshalText() ([]byte, error)

func (OptionalBearerTokenAliasExample) MarshalYAML

func (a OptionalBearerTokenAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalBearerTokenAliasExample) UnmarshalText

func (a *OptionalBearerTokenAliasExample) UnmarshalText(data []byte) error

func (*OptionalBearerTokenAliasExample) UnmarshalYAML

func (a *OptionalBearerTokenAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalBooleanAliasExample

type OptionalBooleanAliasExample struct {
	Value *bool
}

func (OptionalBooleanAliasExample) MarshalJSON

func (a OptionalBooleanAliasExample) MarshalJSON() ([]byte, error)

func (OptionalBooleanAliasExample) MarshalYAML

func (a OptionalBooleanAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalBooleanAliasExample) UnmarshalJSON

func (a *OptionalBooleanAliasExample) UnmarshalJSON(data []byte) error

func (*OptionalBooleanAliasExample) UnmarshalYAML

func (a *OptionalBooleanAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalBooleanExample

type OptionalBooleanExample struct {
	Value *bool `json:"value"`
}

func (OptionalBooleanExample) MarshalYAML

func (o OptionalBooleanExample) MarshalYAML() (interface{}, error)

func (*OptionalBooleanExample) UnmarshalYAML

func (o *OptionalBooleanExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalDateTimeAliasExample

type OptionalDateTimeAliasExample struct {
	Value *datetime.DateTime
}

func (OptionalDateTimeAliasExample) MarshalJSON added in v6.16.0

func (a OptionalDateTimeAliasExample) MarshalJSON() ([]byte, error)

func (OptionalDateTimeAliasExample) MarshalText

func (a OptionalDateTimeAliasExample) MarshalText() ([]byte, error)

func (OptionalDateTimeAliasExample) MarshalYAML

func (a OptionalDateTimeAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalDateTimeAliasExample) UnmarshalText

func (a *OptionalDateTimeAliasExample) UnmarshalText(data []byte) error

func (*OptionalDateTimeAliasExample) UnmarshalYAML

func (a *OptionalDateTimeAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalDoubleAliasExample

type OptionalDoubleAliasExample struct {
	Value *float64
}

func (OptionalDoubleAliasExample) MarshalJSON

func (a OptionalDoubleAliasExample) MarshalJSON() ([]byte, error)

func (OptionalDoubleAliasExample) MarshalYAML

func (a OptionalDoubleAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalDoubleAliasExample) UnmarshalJSON

func (a *OptionalDoubleAliasExample) UnmarshalJSON(data []byte) error

func (*OptionalDoubleAliasExample) UnmarshalYAML

func (a *OptionalDoubleAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalExample

type OptionalExample struct {
	Value *string `json:"value"`
}

func (OptionalExample) MarshalYAML

func (o OptionalExample) MarshalYAML() (interface{}, error)

func (*OptionalExample) UnmarshalYAML

func (o *OptionalExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalIntegerAliasExample

type OptionalIntegerAliasExample struct {
	Value *int
}

func (OptionalIntegerAliasExample) MarshalJSON

func (a OptionalIntegerAliasExample) MarshalJSON() ([]byte, error)

func (OptionalIntegerAliasExample) MarshalYAML

func (a OptionalIntegerAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalIntegerAliasExample) UnmarshalJSON

func (a *OptionalIntegerAliasExample) UnmarshalJSON(data []byte) error

func (*OptionalIntegerAliasExample) UnmarshalYAML

func (a *OptionalIntegerAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalIntegerExample

type OptionalIntegerExample struct {
	Value *int `json:"value"`
}

func (OptionalIntegerExample) MarshalYAML

func (o OptionalIntegerExample) MarshalYAML() (interface{}, error)

func (*OptionalIntegerExample) UnmarshalYAML

func (o *OptionalIntegerExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalRidAliasExample

type OptionalRidAliasExample struct {
	Value *rid.ResourceIdentifier
}

func (OptionalRidAliasExample) MarshalJSON added in v6.16.0

func (a OptionalRidAliasExample) MarshalJSON() ([]byte, error)

func (OptionalRidAliasExample) MarshalText

func (a OptionalRidAliasExample) MarshalText() ([]byte, error)

func (OptionalRidAliasExample) MarshalYAML

func (a OptionalRidAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalRidAliasExample) UnmarshalText

func (a *OptionalRidAliasExample) UnmarshalText(data []byte) error

func (*OptionalRidAliasExample) UnmarshalYAML

func (a *OptionalRidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalSafeLongAliasExample

type OptionalSafeLongAliasExample struct {
	Value *safelong.SafeLong
}

func (OptionalSafeLongAliasExample) MarshalJSON

func (a OptionalSafeLongAliasExample) MarshalJSON() ([]byte, error)

func (OptionalSafeLongAliasExample) MarshalYAML

func (a OptionalSafeLongAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalSafeLongAliasExample) UnmarshalJSON

func (a *OptionalSafeLongAliasExample) UnmarshalJSON(data []byte) error

func (*OptionalSafeLongAliasExample) UnmarshalYAML

func (a *OptionalSafeLongAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalStringAliasExample

type OptionalStringAliasExample struct {
	Value *string
}

func (OptionalStringAliasExample) MarshalJSON added in v6.16.0

func (a OptionalStringAliasExample) MarshalJSON() ([]byte, error)

func (OptionalStringAliasExample) MarshalText

func (a OptionalStringAliasExample) MarshalText() ([]byte, error)

func (OptionalStringAliasExample) MarshalYAML

func (a OptionalStringAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalStringAliasExample) UnmarshalText

func (a *OptionalStringAliasExample) UnmarshalText(data []byte) error

func (*OptionalStringAliasExample) UnmarshalYAML

func (a *OptionalStringAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type OptionalUuidAliasExample

type OptionalUuidAliasExample struct {
	Value *uuid.UUID
}

func (OptionalUuidAliasExample) MarshalJSON added in v6.16.0

func (a OptionalUuidAliasExample) MarshalJSON() ([]byte, error)

func (OptionalUuidAliasExample) MarshalText

func (a OptionalUuidAliasExample) MarshalText() ([]byte, error)

func (OptionalUuidAliasExample) MarshalYAML

func (a OptionalUuidAliasExample) MarshalYAML() (interface{}, error)

func (*OptionalUuidAliasExample) UnmarshalText

func (a *OptionalUuidAliasExample) UnmarshalText(data []byte) error

func (*OptionalUuidAliasExample) UnmarshalYAML

func (a *OptionalUuidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type RawOptionalExample

type RawOptionalExample struct {
	Value *int
}

func (RawOptionalExample) MarshalJSON

func (a RawOptionalExample) MarshalJSON() ([]byte, error)

func (RawOptionalExample) MarshalYAML

func (a RawOptionalExample) MarshalYAML() (interface{}, error)

func (*RawOptionalExample) UnmarshalJSON

func (a *RawOptionalExample) UnmarshalJSON(data []byte) error

func (*RawOptionalExample) UnmarshalYAML

func (a *RawOptionalExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type ReferenceAliasExample

type ReferenceAliasExample AnyExample

func (ReferenceAliasExample) MarshalJSON

func (a ReferenceAliasExample) MarshalJSON() ([]byte, error)

func (ReferenceAliasExample) MarshalYAML

func (a ReferenceAliasExample) MarshalYAML() (interface{}, error)

func (*ReferenceAliasExample) UnmarshalJSON

func (a *ReferenceAliasExample) UnmarshalJSON(data []byte) error

func (*ReferenceAliasExample) UnmarshalYAML

func (a *ReferenceAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type RidAliasExample

type RidAliasExample rid.ResourceIdentifier

func (RidAliasExample) MarshalText

func (a RidAliasExample) MarshalText() ([]byte, error)

func (RidAliasExample) MarshalYAML

func (a RidAliasExample) MarshalYAML() (interface{}, error)

func (RidAliasExample) String

func (a RidAliasExample) String() string

func (*RidAliasExample) UnmarshalText

func (a *RidAliasExample) UnmarshalText(data []byte) error

func (*RidAliasExample) UnmarshalYAML

func (a *RidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type RidExample

type RidExample struct {
	Value rid.ResourceIdentifier `json:"value"`
}

func (RidExample) MarshalYAML

func (o RidExample) MarshalYAML() (interface{}, error)

func (*RidExample) UnmarshalYAML

func (o *RidExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SafeLongAliasExample

type SafeLongAliasExample safelong.SafeLong

func (SafeLongAliasExample) MarshalJSON

func (a SafeLongAliasExample) MarshalJSON() ([]byte, error)

func (SafeLongAliasExample) MarshalYAML

func (a SafeLongAliasExample) MarshalYAML() (interface{}, error)

func (*SafeLongAliasExample) UnmarshalJSON

func (a *SafeLongAliasExample) UnmarshalJSON(data []byte) error

func (*SafeLongAliasExample) UnmarshalYAML

func (a *SafeLongAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SafeLongExample

type SafeLongExample struct {
	Value safelong.SafeLong `json:"value"`
}

func (SafeLongExample) MarshalYAML

func (o SafeLongExample) MarshalYAML() (interface{}, error)

func (*SafeLongExample) UnmarshalYAML

func (o *SafeLongExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetAnyAliasExample

type SetAnyAliasExample []interface{}

type SetBearerTokenAliasExample

type SetBearerTokenAliasExample []bearertoken.Token

func (SetBearerTokenAliasExample) MarshalJSON

func (a SetBearerTokenAliasExample) MarshalJSON() ([]byte, error)

func (SetBearerTokenAliasExample) MarshalYAML

func (a SetBearerTokenAliasExample) MarshalYAML() (interface{}, error)

func (*SetBearerTokenAliasExample) UnmarshalJSON

func (a *SetBearerTokenAliasExample) UnmarshalJSON(data []byte) error

func (*SetBearerTokenAliasExample) UnmarshalYAML

func (a *SetBearerTokenAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetBinaryAliasExample

type SetBinaryAliasExample [][]byte

func (SetBinaryAliasExample) MarshalJSON added in v6.6.0

func (a SetBinaryAliasExample) MarshalJSON() ([]byte, error)

func (SetBinaryAliasExample) MarshalYAML added in v6.6.0

func (a SetBinaryAliasExample) MarshalYAML() (interface{}, error)

func (*SetBinaryAliasExample) UnmarshalJSON added in v6.6.0

func (a *SetBinaryAliasExample) UnmarshalJSON(data []byte) error

func (*SetBinaryAliasExample) UnmarshalYAML added in v6.6.0

func (a *SetBinaryAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetBooleanAliasExample

type SetBooleanAliasExample []bool

type SetDateTimeAliasExample

type SetDateTimeAliasExample []datetime.DateTime

func (SetDateTimeAliasExample) MarshalJSON

func (a SetDateTimeAliasExample) MarshalJSON() ([]byte, error)

func (SetDateTimeAliasExample) MarshalYAML

func (a SetDateTimeAliasExample) MarshalYAML() (interface{}, error)

func (*SetDateTimeAliasExample) UnmarshalJSON

func (a *SetDateTimeAliasExample) UnmarshalJSON(data []byte) error

func (*SetDateTimeAliasExample) UnmarshalYAML

func (a *SetDateTimeAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetDoubleAliasExample

type SetDoubleAliasExample []float64

type SetDoubleExample

type SetDoubleExample struct {
	Value []float64 `json:"value"`
}

func (SetDoubleExample) MarshalJSON

func (o SetDoubleExample) MarshalJSON() ([]byte, error)

func (SetDoubleExample) MarshalYAML

func (o SetDoubleExample) MarshalYAML() (interface{}, error)

func (*SetDoubleExample) UnmarshalJSON

func (o *SetDoubleExample) UnmarshalJSON(data []byte) error

func (*SetDoubleExample) UnmarshalYAML

func (o *SetDoubleExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetIntegerAliasExample

type SetIntegerAliasExample []int

type SetOptionalAnyAliasExample

type SetOptionalAnyAliasExample []*interface{}

type SetRidAliasExample

type SetRidAliasExample []rid.ResourceIdentifier

func (SetRidAliasExample) MarshalJSON

func (a SetRidAliasExample) MarshalJSON() ([]byte, error)

func (SetRidAliasExample) MarshalYAML

func (a SetRidAliasExample) MarshalYAML() (interface{}, error)

func (*SetRidAliasExample) UnmarshalJSON

func (a *SetRidAliasExample) UnmarshalJSON(data []byte) error

func (*SetRidAliasExample) UnmarshalYAML

func (a *SetRidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetSafeLongAliasExample

type SetSafeLongAliasExample []safelong.SafeLong

func (SetSafeLongAliasExample) MarshalJSON

func (a SetSafeLongAliasExample) MarshalJSON() ([]byte, error)

func (SetSafeLongAliasExample) MarshalYAML

func (a SetSafeLongAliasExample) MarshalYAML() (interface{}, error)

func (*SetSafeLongAliasExample) UnmarshalJSON

func (a *SetSafeLongAliasExample) UnmarshalJSON(data []byte) error

func (*SetSafeLongAliasExample) UnmarshalYAML

func (a *SetSafeLongAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetStringAliasExample

type SetStringAliasExample []string

type SetStringExample

type SetStringExample struct {
	Value []string `json:"value"`
}

func (SetStringExample) MarshalJSON

func (o SetStringExample) MarshalJSON() ([]byte, error)

func (SetStringExample) MarshalYAML

func (o SetStringExample) MarshalYAML() (interface{}, error)

func (*SetStringExample) UnmarshalJSON

func (o *SetStringExample) UnmarshalJSON(data []byte) error

func (*SetStringExample) UnmarshalYAML

func (o *SetStringExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SetUuidAliasExample

type SetUuidAliasExample []uuid.UUID

func (SetUuidAliasExample) MarshalJSON

func (a SetUuidAliasExample) MarshalJSON() ([]byte, error)

func (SetUuidAliasExample) MarshalYAML

func (a SetUuidAliasExample) MarshalYAML() (interface{}, error)

func (*SetUuidAliasExample) UnmarshalJSON

func (a *SetUuidAliasExample) UnmarshalJSON(data []byte) error

func (*SetUuidAliasExample) UnmarshalYAML

func (a *SetUuidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type SnakeCaseObjectExample

type SnakeCaseObjectExample struct {
	SnakeCasedField int `json:"snake_cased_field"`
}

func (SnakeCaseObjectExample) MarshalYAML

func (o SnakeCaseObjectExample) MarshalYAML() (interface{}, error)

func (*SnakeCaseObjectExample) UnmarshalYAML

func (o *SnakeCaseObjectExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type StringAliasExample

type StringAliasExample string

type StringExample

type StringExample struct {
	Value string `json:"value"`
}

func (StringExample) MarshalYAML

func (o StringExample) MarshalYAML() (interface{}, error)

func (*StringExample) UnmarshalYAML

func (o *StringExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type Union

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

A type which can either be a StringExample, a set of strings, or an integer.

func NewUnionFromAlsoAnInteger

func NewUnionFromAlsoAnInteger(v int) Union

func NewUnionFromIf

func NewUnionFromIf(v int) Union

func NewUnionFromInterface

func NewUnionFromInterface(v int) Union

func NewUnionFromNew

func NewUnionFromNew(v int) Union

func NewUnionFromSet

func NewUnionFromSet(v []string) Union

func NewUnionFromStringExample

func NewUnionFromStringExample(v StringExample) Union

func NewUnionFromThisFieldIsAnInteger

func NewUnionFromThisFieldIsAnInteger(v int) Union

func (*Union) Accept

func (u *Union) Accept(v UnionVisitor) error

func (*Union) AcceptWithContext

func (u *Union) AcceptWithContext(ctx context.Context, v UnionVisitorWithContext) error

func (Union) MarshalJSON

func (u Union) MarshalJSON() ([]byte, error)

func (Union) MarshalYAML

func (u Union) MarshalYAML() (interface{}, error)

func (*Union) UnmarshalJSON

func (u *Union) UnmarshalJSON(data []byte) error

func (*Union) UnmarshalYAML

func (u *Union) UnmarshalYAML(unmarshal func(interface{}) error) error

type UnionVisitor

type UnionVisitor interface {
	VisitStringExample(v StringExample) error
	VisitSet(v []string) error
	VisitThisFieldIsAnInteger(v int) error
	VisitAlsoAnInteger(v int) error
	VisitIf(v int) error
	VisitNew(v int) error
	VisitInterface(v int) error
	VisitUnknown(typeName string) error
}

type UnionVisitorWithContext

type UnionVisitorWithContext interface {
	VisitStringExampleWithContext(ctx context.Context, v StringExample) error
	VisitSetWithContext(ctx context.Context, v []string) error
	VisitThisFieldIsAnIntegerWithContext(ctx context.Context, v int) error
	VisitAlsoAnIntegerWithContext(ctx context.Context, v int) error
	VisitIfWithContext(ctx context.Context, v int) error
	VisitNewWithContext(ctx context.Context, v int) error
	VisitInterfaceWithContext(ctx context.Context, v int) error
	VisitUnknownWithContext(ctx context.Context, typeName string) error
}

type UnionVisitorWithT added in v6.18.0

type UnionVisitorWithT[T any] interface {
	VisitStringExample(ctx context.Context, v StringExample) (T, error)
	VisitSet(ctx context.Context, v []string) (T, error)
	VisitThisFieldIsAnInteger(ctx context.Context, v int) (T, error)
	VisitAlsoAnInteger(ctx context.Context, v int) (T, error)
	VisitIf(ctx context.Context, v int) (T, error)
	VisitNew(ctx context.Context, v int) (T, error)
	VisitInterface(ctx context.Context, v int) (T, error)
	VisitUnknown(ctx context.Context, typ string) (T, error)
}

type UnionWithT added in v6.18.0

type UnionWithT[T any] Union

func (*UnionWithT[T]) Accept added in v6.18.0

func (u *UnionWithT[T]) Accept(ctx context.Context, v UnionVisitorWithT[T]) (T, error)

type UuidAliasExample

type UuidAliasExample uuid.UUID

func (UuidAliasExample) MarshalText

func (a UuidAliasExample) MarshalText() ([]byte, error)

func (UuidAliasExample) MarshalYAML

func (a UuidAliasExample) MarshalYAML() (interface{}, error)

func (UuidAliasExample) String

func (a UuidAliasExample) String() string

func (*UuidAliasExample) UnmarshalText

func (a *UuidAliasExample) UnmarshalText(data []byte) error

func (*UuidAliasExample) UnmarshalYAML

func (a *UuidAliasExample) UnmarshalYAML(unmarshal func(interface{}) error) error

type UuidExample

type UuidExample struct {
	Value uuid.UUID `json:"value"`
}

func (UuidExample) MarshalYAML

func (o UuidExample) MarshalYAML() (interface{}, error)

func (*UuidExample) UnmarshalYAML

func (o *UuidExample) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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