model

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount int64

Amount Non-negative amount of treasures/etc.

swagger:model amount

func (Amount) Validate

func (m Amount) Validate(formats strfmt.Registry) error

Validate validates this amount

type Area

type Area struct {

	// pos x
	// Required: true
	// Minimum: 0
	PosX *int64 `json:"posX"`

	// pos y
	// Required: true
	// Minimum: 0
	PosY *int64 `json:"posY"`

	// size x
	// Minimum: 1
	SizeX int64 `json:"sizeX,omitempty"`

	// size y
	// Minimum: 1
	SizeY int64 `json:"sizeY,omitempty"`
}

Area area

swagger:model area

func (*Area) MarshalBinary

func (m *Area) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Area) UnmarshalBinary

func (m *Area) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Area) UnmarshalJSON

func (m *Area) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Area) Validate

func (m *Area) Validate(formats strfmt.Registry) error

Validate validates this area

type Balance

type Balance struct {

	// balance
	// Required: true
	Balance *uint32 `json:"balance"`

	// wallet
	// Required: true
	Wallet Wallet `json:"wallet"`
}

Balance Current balance and wallet with up to 1000 coins.

swagger:model balance

func (*Balance) MarshalBinary

func (m *Balance) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Balance) UnmarshalBinary

func (m *Balance) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Balance) UnmarshalJSON

func (m *Balance) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Balance) Validate

func (m *Balance) Validate(formats strfmt.Registry) error

Validate validates this balance

type Dig

type Dig struct {

	// ID of the license this request is attached to.
	// Required: true
	LicenseID *int64 `json:"licenseID"`

	// pos x
	// Required: true
	// Minimum: 0
	PosX *int64 `json:"posX"`

	// pos y
	// Required: true
	// Minimum: 0
	PosY *int64 `json:"posY"`

	// depth
	// Required: true
	// Maximum: 100
	// Minimum: 1
	Depth *int64 `json:"depth"`
}

Dig dig

swagger:model dig

func (*Dig) MarshalBinary

func (m *Dig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Dig) UnmarshalBinary

func (m *Dig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Dig) UnmarshalJSON

func (m *Dig) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Dig) Validate

func (m *Dig) Validate(formats strfmt.Registry) error

Validate validates this dig

type Error

type Error struct {

	// Either same as HTTP Status Code OR >= 600 with HTTP Status Code 422.
	// Required: true
	Code *int32 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error This model should match output of errors returned by go-swagger (like failed validation), to ensure our handlers use same format.

swagger:model error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) UnmarshalJSON

func (m *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type License

type License struct {

	// id
	// Required: true
	ID *int64 `json:"id"`

	// dig allowed
	// Required: true
	DigAllowed Amount `json:"digAllowed"`

	// dig used
	// Required: true
	DigUsed Amount `json:"digUsed"`
}

License License for digging.

swagger:model license

func (*License) MarshalBinary

func (m *License) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*License) UnmarshalBinary

func (m *License) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*License) UnmarshalJSON

func (m *License) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*License) Validate

func (m *License) Validate(formats strfmt.Registry) error

Validate validates this license

type LicenseList

type LicenseList []*License

LicenseList List of issued licenses.

swagger:model licenseList

func (LicenseList) Validate

func (m LicenseList) Validate(formats strfmt.Registry) error

Validate validates this license list

type Report

type Report struct {

	// area
	// Required: true
	Area *Area `json:"area"`

	// amount
	// Required: true
	Amount Amount `json:"amount"`

	// Histogram, key is depth ("1", "2", …).
	AmountPerDepth map[string]Amount `json:"amountPerDepth,omitempty"`
}

Report report

swagger:model report

func (*Report) MarshalBinary

func (m *Report) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Report) UnmarshalBinary

func (m *Report) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Report) UnmarshalJSON

func (m *Report) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object while disallowing additional properties from JSON

func (*Report) Validate

func (m *Report) Validate(formats strfmt.Registry) error

Validate validates this report

type Treasure

type Treasure string

Treasure Treasure ID.

swagger:model treasure

func (Treasure) Validate

func (m Treasure) Validate(formats strfmt.Registry) error

Validate validates this treasure

type TreasureList

type TreasureList []Treasure

TreasureList List of treasures.

swagger:model treasureList

func (TreasureList) Validate

func (m TreasureList) Validate(formats strfmt.Registry) error

Validate validates this treasure list

type Wallet

type Wallet []uint32

Wallet Wallet with some coins.

swagger:model wallet

func (Wallet) Validate

func (m Wallet) Validate(formats strfmt.Registry) error

Validate validates this wallet

Jump to

Keyboard shortcuts

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