types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct{}

func (*Any) String

func (e *Any) String() string

func (*Any) UsedAsMapKey

func (e *Any) UsedAsMapKey() bool

type Array

type Array struct {
	Inner Type
}

func (*Array) String

func (n *Array) String() string

func (*Array) UsedAsMapKey

func (e *Array) UsedAsMapKey() bool

type Boolean

type Boolean struct {
}

func (*Boolean) String

func (n *Boolean) String() string

func (*Boolean) UsedAsMapKey

func (e *Boolean) UsedAsMapKey() bool

type Date

type Date struct {
}

func (*Date) String

func (n *Date) String() string

func (*Date) UsedAsMapKey

func (e *Date) UsedAsMapKey() bool

type Enumerable

type Enumerable interface {
	Type
	AddCandidates(v interface{})
}

type Map

type Map struct {
	Key   Type
	Value Type
}

func (*Map) String

func (n *Map) String() string

func (*Map) UsedAsMapKey

func (e *Map) UsedAsMapKey() bool

type NamedType

type NamedType interface {
	Type
	SetName(name string)
}

type Nullable

type Nullable struct {
	Inner Type
}

func (*Nullable) String

func (n *Nullable) String() string

func (*Nullable) UsedAsMapKey

func (e *Nullable) UsedAsMapKey() bool

type Number

type Number struct {
	Name string

	Enum []int64
}

func (*Number) AddCandidates

func (n *Number) AddCandidates(v interface{})

func (*Number) SetName

func (n *Number) SetName(name string)

func (*Number) String

func (n *Number) String() string

func (*Number) UsedAsMapKey

func (e *Number) UsedAsMapKey() bool

type Object

type Object struct {
	Name string

	Entries map[string]ObjectEntry
}

func (*Object) SetName

func (n *Object) SetName(name string)

func (*Object) String

func (n *Object) String() string

func (*Object) UsedAsMapKey

func (e *Object) UsedAsMapKey() bool

type ObjectEntry

type ObjectEntry struct {
	Type     Type
	Optional bool
}

type String

type String struct {
	Name string

	Enum []string
}

func (*String) AddCandidates

func (n *String) AddCandidates(v interface{})

func (*String) SetName

func (n *String) SetName(name string)

func (*String) String

func (n *String) String() string

func (*String) UsedAsMapKey

func (e *String) UsedAsMapKey() bool

type Type

type Type interface {
	UsedAsMapKey() bool
	String() string
}

Jump to

Keyboard shortcuts

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