Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
MarshalBinary interface implementation
func (*Area) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Area) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
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 ¶
MarshalBinary interface implementation
func (*Balance) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Balance) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
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 ¶
MarshalBinary interface implementation
func (*Dig) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Dig) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
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 ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Error) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
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 ¶
MarshalBinary interface implementation
func (*License) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*License) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
type LicenseList ¶
type LicenseList []*License
LicenseList List of issued licenses.
swagger:model licenseList
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 ¶
MarshalBinary interface implementation
func (*Report) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Report) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object while disallowing additional properties from JSON
type TreasureList ¶
type TreasureList []Treasure
TreasureList List of treasures.
swagger:model treasureList