api

package
v5.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	Data string `json:"data"`
}

func (Basic) MarshalYAML

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

func (*Basic) UnmarshalYAML

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

type BinaryAlias

type BinaryAlias []byte

type BinaryMap

type BinaryMap struct {
	Map map[binary.Binary][]byte `json:"map"`
}

func (BinaryMap) MarshalJSON

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

func (BinaryMap) MarshalYAML

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

func (*BinaryMap) UnmarshalJSON

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

func (*BinaryMap) UnmarshalYAML

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

type BooleanIntegerMap added in v5.0.3

type BooleanIntegerMap struct {
	Map map[boolean.Boolean]int `json:"map"`
}

func (BooleanIntegerMap) MarshalJSON added in v5.0.3

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

func (BooleanIntegerMap) MarshalYAML added in v5.0.3

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

func (*BooleanIntegerMap) UnmarshalJSON added in v5.0.3

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

func (*BooleanIntegerMap) UnmarshalYAML added in v5.0.3

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

type Collections

type Collections struct {
	MapVar   map[string][]int   `json:"mapVar"`
	ListVar  []string           `json:"listVar"`
	MultiDim [][]map[string]int `json:"multiDim"`
}

func (Collections) MarshalJSON

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

func (Collections) MarshalYAML

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

func (*Collections) UnmarshalJSON

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

func (*Collections) UnmarshalYAML

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

type Compound

type Compound struct {
	Obj Collections `json:"obj"`
}

func (Compound) MarshalYAML

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

func (*Compound) UnmarshalYAML

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

type Enum added in v5.1.0

type Enum string
const (
	EnumValue1 Enum = "VALUE1"
	// Docs for an enum value
	EnumValue2 Enum = "VALUE2"
)

func Enum_Values added in v5.3.0

func Enum_Values() []Enum

Enum_Values returns all known variants of Enum.

func (Enum) IsUnknown added in v5.3.0

func (e Enum) IsUnknown() bool

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

func (*Enum) UnmarshalText added in v5.1.0

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

type ExampleUnion

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

func NewExampleUnionFromOther

func NewExampleUnionFromOther(v int) ExampleUnion

func NewExampleUnionFromStr

func NewExampleUnionFromStr(v string) ExampleUnion

func NewExampleUnionFromStrOptional

func NewExampleUnionFromStrOptional(v *string) ExampleUnion

func (*ExampleUnion) Accept

func (u *ExampleUnion) Accept(v ExampleUnionVisitor) error

func (*ExampleUnion) AcceptWithContext added in v5.1.0

func (u *ExampleUnion) AcceptWithContext(ctx context.Context, v ExampleUnionVisitorWithContext) error

func (ExampleUnion) MarshalJSON

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

func (ExampleUnion) MarshalYAML

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

func (*ExampleUnion) UnmarshalJSON

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

func (*ExampleUnion) UnmarshalYAML

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

type ExampleUnionVisitor

type ExampleUnionVisitor interface {
	VisitStr(v string) error
	VisitStrOptional(v *string) error
	VisitOther(v int) error
	VisitUnknown(typeName string) error
}

type ExampleUnionVisitorWithContext added in v5.1.0

type ExampleUnionVisitorWithContext interface {
	VisitStrWithContext(ctx context.Context, v string) error
	VisitStrOptionalWithContext(ctx context.Context, v *string) error
	VisitOtherWithContext(ctx context.Context, v int) error
	VisitUnknownWithContext(ctx context.Context, typeName string) error
}

type ExampleUuid

type ExampleUuid struct {
	Uid uuid.UUID `json:"uid"`
}

func (ExampleUuid) MarshalYAML

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

func (*ExampleUuid) UnmarshalYAML

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

type OptionalUuidAlias

type OptionalUuidAlias struct {
	Value *uuid.UUID
}

func (OptionalUuidAlias) MarshalText

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

func (OptionalUuidAlias) MarshalYAML

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

func (*OptionalUuidAlias) UnmarshalText

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

func (*OptionalUuidAlias) UnmarshalYAML

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

type RidAlias

type RidAlias rid.ResourceIdentifier

func (RidAlias) MarshalText

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

func (RidAlias) MarshalYAML

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

func (RidAlias) String

func (a RidAlias) String() string

func (*RidAlias) UnmarshalText

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

func (*RidAlias) UnmarshalYAML

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

type Type

type Type struct {
	Type []string          `json:"type"`
	Chan map[string]string `json:"chan"`
}

A type using go keywords

func (Type) MarshalJSON

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

func (Type) MarshalYAML

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

func (*Type) UnmarshalJSON

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

func (*Type) UnmarshalYAML

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

type UuidAlias

type UuidAlias uuid.UUID

func (UuidAlias) MarshalText

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

func (UuidAlias) MarshalYAML

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

func (UuidAlias) String

func (a UuidAlias) String() string

func (*UuidAlias) UnmarshalText

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

func (*UuidAlias) UnmarshalYAML

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

type UuidAlias2

type UuidAlias2 Compound

func (UuidAlias2) MarshalJSON

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

func (UuidAlias2) MarshalYAML

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

func (*UuidAlias2) UnmarshalJSON

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

func (*UuidAlias2) UnmarshalYAML

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

Jump to

Keyboard shortcuts

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