api

package
v0.0.0-...-ee3aab2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type BaseAhPlayerIdPostOK

type BaseAhPlayerIdPostOK struct{}

BaseAhPlayerIdPostOK is response for BaseAhPlayerIdPost operation.

type BaseAhPlayerIdPostParams

type BaseAhPlayerIdPostParams struct {
	PlayerId string
}

BaseAhPlayerIdPostParams is parameters of POST /Base/ah/{playerId} operation.

type BaseKeyPostOK

type BaseKeyPostOK struct{}

BaseKeyPostOK is response for BaseKeyPost operation.

type BaseKeysPartyCountGetParams

type BaseKeysPartyCountGetParams struct {
	Party string
}

BaseKeysPartyCountGetParams is parameters of GET /Base/keys/{party}/count operation.

type Category

type Category int32

Ref: #/components/schemas/Category

const (
	Category0 Category = 0
	Category1 Category = 1
	Category2 Category = 2
	Category3 Category = 3
	Category4 Category = 4
	Category5 Category = 5
	Category6 Category = 6
)

func (*Category) Decode

func (s *Category) Decode(d *jx.Decoder) error

Decode decodes Category from json.

func (Category) Encode

func (s Category) Encode(e *jx.Encoder)

Encode encodes Category as json.

func (Category) MarshalJSON

func (s Category) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Category) UnmarshalJSON

func (s *Category) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Category) Validate

func (s Category) Validate() error

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) APITimeGet

func (c *Client) APITimeGet(ctx context.Context) (time.Time, error)

APITimeGet invokes GET /Api/time operation.

GET /Api/time

func (*Client) BaseAhPlayerIdPost

func (c *Client) BaseAhPlayerIdPost(ctx context.Context, params BaseAhPlayerIdPostParams) error

BaseAhPlayerIdPost invokes POST /Base/ah/{playerId} operation.

Request ah update for a player.

POST /Base/ah/{playerId}

func (*Client) BaseKeyPost

func (c *Client) BaseKeyPost(ctx context.Context, request *KeyCreate) error

BaseKeyPost invokes POST /Base/key operation.

POST /Base/key

func (*Client) BaseKeysPartyCountGet

func (c *Client) BaseKeysPartyCountGet(ctx context.Context, params BaseKeysPartyCountGetParams) (int32, error)

BaseKeysPartyCountGet invokes GET /Base/keys/{party}/count operation.

GET /Base/keys/{party}/count

func (*Client) ProxyHypixelAhPlayerPlayerUuidGet

func (c *Client) ProxyHypixelAhPlayerPlayerUuidGet(ctx context.Context, params ProxyHypixelAhPlayerPlayerUuidGetParams) ([]SaveAuction, error)

ProxyHypixelAhPlayerPlayerUuidGet invokes GET /Proxy/hypixel/ah/player/{playerUuid} operation.

Load the auctions of a player.

GET /Proxy/hypixel/ah/player/{playerUuid}

func (*Client) ProxyHypixelGet

func (c *Client) ProxyHypixelGet(ctx context.Context, params ProxyHypixelGetParams) (ProxyHypixelGetRes, error)

ProxyHypixelGet invokes GET /Proxy/hypixel operation.

Proxy the path to hypixel using the assigned key (no key required).

GET /Proxy/hypixel

func (*Client) ProxyHypixelStatusGet

func (c *Client) ProxyHypixelStatusGet(ctx context.Context) error

ProxyHypixelStatusGet invokes GET /Proxy/hypixel/status operation.

Can proxy anything.

GET /Proxy/hypixel/status

func (*Client) SkyblockAuctionsGet

func (c *Client) SkyblockAuctionsGet(ctx context.Context) (SkyblockAuctionsGetRes, error)

SkyblockAuctionsGet invokes GET /skyblock/auctions operation.

GET /skyblock/auctions

func (*Client) SkyblockAuctionsPost

func (c *Client) SkyblockAuctionsPost(ctx context.Context) (SkyblockAuctionsPostRes, error)

SkyblockAuctionsPost invokes POST /skyblock/auctions operation.

POST /skyblock/auctions

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type Enchantment

type Enchantment struct {
	ID            OptInt32           `json:"id"`
	Type          OptEnchantmentType `json:"type"`
	Level         OptInt32           `json:"level"`
	ItemType      OptInt32           `json:"itemType"`
	SaveAuctionId OptInt32           `json:"saveAuctionId"`
}

Ref: #/components/schemas/Enchantment

func (*Enchantment) Decode

func (s *Enchantment) Decode(d *jx.Decoder) error

Decode decodes Enchantment from json.

func (*Enchantment) Encode

func (s *Enchantment) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Enchantment) GetID

func (s *Enchantment) GetID() OptInt32

GetID returns the value of ID.

func (*Enchantment) GetItemType

func (s *Enchantment) GetItemType() OptInt32

GetItemType returns the value of ItemType.

func (*Enchantment) GetLevel

func (s *Enchantment) GetLevel() OptInt32

GetLevel returns the value of Level.

func (*Enchantment) GetSaveAuctionId

func (s *Enchantment) GetSaveAuctionId() OptInt32

GetSaveAuctionId returns the value of SaveAuctionId.

func (*Enchantment) GetType

func (s *Enchantment) GetType() OptEnchantmentType

GetType returns the value of Type.

func (*Enchantment) MarshalJSON

func (s *Enchantment) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Enchantment) SetID

func (s *Enchantment) SetID(val OptInt32)

SetID sets the value of ID.

func (*Enchantment) SetItemType

func (s *Enchantment) SetItemType(val OptInt32)

SetItemType sets the value of ItemType.

func (*Enchantment) SetLevel

func (s *Enchantment) SetLevel(val OptInt32)

SetLevel sets the value of Level.

func (*Enchantment) SetSaveAuctionId

func (s *Enchantment) SetSaveAuctionId(val OptInt32)

SetSaveAuctionId sets the value of SaveAuctionId.

func (*Enchantment) SetType

func (s *Enchantment) SetType(val OptEnchantmentType)

SetType sets the value of Type.

func (*Enchantment) UnmarshalJSON

func (s *Enchantment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Enchantment) Validate

func (s *Enchantment) Validate() error

type EnchantmentType

type EnchantmentType int32

Ref: #/components/schemas/EnchantmentType

const (
	EnchantmentType0   EnchantmentType = 0
	EnchantmentType1   EnchantmentType = 1
	EnchantmentType2   EnchantmentType = 2
	EnchantmentType3   EnchantmentType = 3
	EnchantmentType4   EnchantmentType = 4
	EnchantmentType5   EnchantmentType = 5
	EnchantmentType6   EnchantmentType = 6
	EnchantmentType7   EnchantmentType = 7
	EnchantmentType8   EnchantmentType = 8
	EnchantmentType9   EnchantmentType = 9
	EnchantmentType10  EnchantmentType = 10
	EnchantmentType11  EnchantmentType = 11
	EnchantmentType12  EnchantmentType = 12
	EnchantmentType13  EnchantmentType = 13
	EnchantmentType14  EnchantmentType = 14
	EnchantmentType15  EnchantmentType = 15
	EnchantmentType16  EnchantmentType = 16
	EnchantmentType17  EnchantmentType = 17
	EnchantmentType18  EnchantmentType = 18
	EnchantmentType19  EnchantmentType = 19
	EnchantmentType20  EnchantmentType = 20
	EnchantmentType21  EnchantmentType = 21
	EnchantmentType22  EnchantmentType = 22
	EnchantmentType23  EnchantmentType = 23
	EnchantmentType24  EnchantmentType = 24
	EnchantmentType25  EnchantmentType = 25
	EnchantmentType26  EnchantmentType = 26
	EnchantmentType27  EnchantmentType = 27
	EnchantmentType28  EnchantmentType = 28
	EnchantmentType29  EnchantmentType = 29
	EnchantmentType30  EnchantmentType = 30
	EnchantmentType31  EnchantmentType = 31
	EnchantmentType32  EnchantmentType = 32
	EnchantmentType33  EnchantmentType = 33
	EnchantmentType34  EnchantmentType = 34
	EnchantmentType35  EnchantmentType = 35
	EnchantmentType36  EnchantmentType = 36
	EnchantmentType37  EnchantmentType = 37
	EnchantmentType38  EnchantmentType = 38
	EnchantmentType39  EnchantmentType = 39
	EnchantmentType40  EnchantmentType = 40
	EnchantmentType41  EnchantmentType = 41
	EnchantmentType42  EnchantmentType = 42
	EnchantmentType43  EnchantmentType = 43
	EnchantmentType44  EnchantmentType = 44
	EnchantmentType45  EnchantmentType = 45
	EnchantmentType46  EnchantmentType = 46
	EnchantmentType47  EnchantmentType = 47
	EnchantmentType48  EnchantmentType = 48
	EnchantmentType49  EnchantmentType = 49
	EnchantmentType50  EnchantmentType = 50
	EnchantmentType51  EnchantmentType = 51
	EnchantmentType52  EnchantmentType = 52
	EnchantmentType53  EnchantmentType = 53
	EnchantmentType54  EnchantmentType = 54
	EnchantmentType55  EnchantmentType = 55
	EnchantmentType56  EnchantmentType = 56
	EnchantmentType57  EnchantmentType = 57
	EnchantmentType58  EnchantmentType = 58
	EnchantmentType60  EnchantmentType = 60
	EnchantmentType61  EnchantmentType = 61
	EnchantmentType62  EnchantmentType = 62
	EnchantmentType63  EnchantmentType = 63
	EnchantmentType64  EnchantmentType = 64
	EnchantmentType65  EnchantmentType = 65
	EnchantmentType66  EnchantmentType = 66
	EnchantmentType67  EnchantmentType = 67
	EnchantmentType68  EnchantmentType = 68
	EnchantmentType69  EnchantmentType = 69
	EnchantmentType70  EnchantmentType = 70
	EnchantmentType71  EnchantmentType = 71
	EnchantmentType72  EnchantmentType = 72
	EnchantmentType73  EnchantmentType = 73
	EnchantmentType74  EnchantmentType = 74
	EnchantmentType75  EnchantmentType = 75
	EnchantmentType76  EnchantmentType = 76
	EnchantmentType77  EnchantmentType = 77
	EnchantmentType78  EnchantmentType = 78
	EnchantmentType79  EnchantmentType = 79
	EnchantmentType80  EnchantmentType = 80
	EnchantmentType81  EnchantmentType = 81
	EnchantmentType82  EnchantmentType = 82
	EnchantmentType83  EnchantmentType = 83
	EnchantmentType84  EnchantmentType = 84
	EnchantmentType85  EnchantmentType = 85
	EnchantmentType86  EnchantmentType = 86
	EnchantmentType87  EnchantmentType = 87
	EnchantmentType88  EnchantmentType = 88
	EnchantmentType89  EnchantmentType = 89
	EnchantmentType90  EnchantmentType = 90
	EnchantmentType91  EnchantmentType = 91
	EnchantmentType92  EnchantmentType = 92
	EnchantmentType93  EnchantmentType = 93
	EnchantmentType94  EnchantmentType = 94
	EnchantmentType95  EnchantmentType = 95
	EnchantmentType96  EnchantmentType = 96
	EnchantmentType97  EnchantmentType = 97
	EnchantmentType98  EnchantmentType = 98
	EnchantmentType99  EnchantmentType = 99
	EnchantmentType100 EnchantmentType = 100
	EnchantmentType101 EnchantmentType = 101
	EnchantmentType102 EnchantmentType = 102
	EnchantmentType103 EnchantmentType = 103
	EnchantmentType104 EnchantmentType = 104
	EnchantmentType105 EnchantmentType = 105
	EnchantmentType106 EnchantmentType = 106
	EnchantmentType107 EnchantmentType = 107
	EnchantmentType108 EnchantmentType = 108
	EnchantmentType109 EnchantmentType = 109
	EnchantmentType110 EnchantmentType = 110
	EnchantmentType111 EnchantmentType = 111
	EnchantmentType112 EnchantmentType = 112
	EnchantmentType113 EnchantmentType = 113
	EnchantmentType114 EnchantmentType = 114
	EnchantmentType115 EnchantmentType = 115
	EnchantmentType116 EnchantmentType = 116
	EnchantmentType117 EnchantmentType = 117
	EnchantmentType118 EnchantmentType = 118
	EnchantmentType119 EnchantmentType = 119
	EnchantmentType120 EnchantmentType = 120
	EnchantmentType121 EnchantmentType = 121
	EnchantmentType122 EnchantmentType = 122
	EnchantmentType123 EnchantmentType = 123
	EnchantmentType126 EnchantmentType = 126
)

func (*EnchantmentType) Decode

func (s *EnchantmentType) Decode(d *jx.Decoder) error

Decode decodes EnchantmentType from json.

func (EnchantmentType) Encode

func (s EnchantmentType) Encode(e *jx.Encoder)

Encode encodes EnchantmentType as json.

func (EnchantmentType) MarshalJSON

func (s EnchantmentType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnchantmentType) UnmarshalJSON

func (s *EnchantmentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (EnchantmentType) Validate

func (s EnchantmentType) Validate() error

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type Handler

type Handler interface {
	// APITimeGet implements GET /Api/time operation.
	//
	// GET /Api/time
	APITimeGet(ctx context.Context) (time.Time, error)
	// BaseAhPlayerIdPost implements POST /Base/ah/{playerId} operation.
	//
	// Request ah update for a player.
	//
	// POST /Base/ah/{playerId}
	BaseAhPlayerIdPost(ctx context.Context, params BaseAhPlayerIdPostParams) error
	// BaseKeyPost implements POST /Base/key operation.
	//
	// POST /Base/key
	BaseKeyPost(ctx context.Context, req *KeyCreate) error
	// BaseKeysPartyCountGet implements GET /Base/keys/{party}/count operation.
	//
	// GET /Base/keys/{party}/count
	BaseKeysPartyCountGet(ctx context.Context, params BaseKeysPartyCountGetParams) (int32, error)
	// ProxyHypixelAhPlayerPlayerUuidGet implements GET /Proxy/hypixel/ah/player/{playerUuid} operation.
	//
	// Load the auctions of a player.
	//
	// GET /Proxy/hypixel/ah/player/{playerUuid}
	ProxyHypixelAhPlayerPlayerUuidGet(ctx context.Context, params ProxyHypixelAhPlayerPlayerUuidGetParams) ([]SaveAuction, error)
	// ProxyHypixelGet implements GET /Proxy/hypixel operation.
	//
	// Proxy the path to hypixel using the assigned key (no key required).
	//
	// GET /Proxy/hypixel
	ProxyHypixelGet(ctx context.Context, params ProxyHypixelGetParams) (ProxyHypixelGetRes, error)
	// ProxyHypixelStatusGet implements GET /Proxy/hypixel/status operation.
	//
	// Can proxy anything.
	//
	// GET /Proxy/hypixel/status
	ProxyHypixelStatusGet(ctx context.Context) error
	// SkyblockAuctionsGet implements GET /skyblock/auctions operation.
	//
	// GET /skyblock/auctions
	SkyblockAuctionsGet(ctx context.Context) (SkyblockAuctionsGetRes, error)
	// SkyblockAuctionsPost implements POST /skyblock/auctions operation.
	//
	// POST /skyblock/auctions
	SkyblockAuctionsPost(ctx context.Context) (SkyblockAuctionsPostRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type KeyCreate

type KeyCreate struct {
	Party OptNilString `json:"party"`
	Key   OptNilString `json:"key"`
	Owner OptNilString `json:"owner"`
}

Ref: #/components/schemas/KeyCreate

func (*KeyCreate) Decode

func (s *KeyCreate) Decode(d *jx.Decoder) error

Decode decodes KeyCreate from json.

func (*KeyCreate) Encode

func (s *KeyCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*KeyCreate) GetKey

func (s *KeyCreate) GetKey() OptNilString

GetKey returns the value of Key.

func (*KeyCreate) GetOwner

func (s *KeyCreate) GetOwner() OptNilString

GetOwner returns the value of Owner.

func (*KeyCreate) GetParty

func (s *KeyCreate) GetParty() OptNilString

GetParty returns the value of Party.

func (*KeyCreate) MarshalJSON

func (s *KeyCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*KeyCreate) SetKey

func (s *KeyCreate) SetKey(val OptNilString)

SetKey sets the value of Key.

func (*KeyCreate) SetOwner

func (s *KeyCreate) SetOwner(val OptNilString)

SetOwner sets the value of Owner.

func (*KeyCreate) SetParty

func (s *KeyCreate) SetParty(val OptNilString)

SetParty sets the value of Party.

func (*KeyCreate) UnmarshalJSON

func (s *KeyCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type NBTLookup

type NBTLookup struct {
	AuctionId OptInt32 `json:"auctionId"`
	KeyId     OptInt32 `json:"keyId"`
	Value     OptInt64 `json:"value"`
}

Ref: #/components/schemas/NBTLookup

func (*NBTLookup) Decode

func (s *NBTLookup) Decode(d *jx.Decoder) error

Decode decodes NBTLookup from json.

func (*NBTLookup) Encode

func (s *NBTLookup) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NBTLookup) GetAuctionId

func (s *NBTLookup) GetAuctionId() OptInt32

GetAuctionId returns the value of AuctionId.

func (*NBTLookup) GetKeyId

func (s *NBTLookup) GetKeyId() OptInt32

GetKeyId returns the value of KeyId.

func (*NBTLookup) GetValue

func (s *NBTLookup) GetValue() OptInt64

GetValue returns the value of Value.

func (*NBTLookup) MarshalJSON

func (s *NBTLookup) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NBTLookup) SetAuctionId

func (s *NBTLookup) SetAuctionId(val OptInt32)

SetAuctionId sets the value of AuctionId.

func (*NBTLookup) SetKeyId

func (s *NBTLookup) SetKeyId(val OptInt32)

SetKeyId sets the value of KeyId.

func (*NBTLookup) SetValue

func (s *NBTLookup) SetValue(val OptInt64)

SetValue sets the value of Value.

func (*NBTLookup) UnmarshalJSON

func (s *NBTLookup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NbtData

type NbtData struct {
	ID   OptInt32          `json:"id"`
	Data OptNilNbtDataData `json:"data"`
}

Ref: #/components/schemas/NbtData

func (*NbtData) Decode

func (s *NbtData) Decode(d *jx.Decoder) error

Decode decodes NbtData from json.

func (*NbtData) Encode

func (s *NbtData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NbtData) GetData

func (s *NbtData) GetData() OptNilNbtDataData

GetData returns the value of Data.

func (*NbtData) GetID

func (s *NbtData) GetID() OptInt32

GetID returns the value of ID.

func (*NbtData) MarshalJSON

func (s *NbtData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NbtData) SetData

func (s *NbtData) SetData(val OptNilNbtDataData)

SetData sets the value of Data.

func (*NbtData) SetID

func (s *NbtData) SetID(val OptInt32)

SetID sets the value of ID.

func (*NbtData) UnmarshalJSON

func (s *NbtData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NbtDataData

type NbtDataData map[string]jx.Raw

func (*NbtDataData) Decode

func (s *NbtDataData) Decode(d *jx.Decoder) error

Decode decodes NbtDataData from json.

func (NbtDataData) Encode

func (s NbtDataData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (NbtDataData) MarshalJSON

func (s NbtDataData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NbtDataData) UnmarshalJSON

func (s *NbtDataData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCategory

type OptCategory struct {
	Value Category
	Set   bool
}

OptCategory is optional Category.

func NewOptCategory

func NewOptCategory(v Category) OptCategory

NewOptCategory returns new OptCategory with value set to v.

func (*OptCategory) Decode

func (o *OptCategory) Decode(d *jx.Decoder) error

Decode decodes Category from json.

func (OptCategory) Encode

func (o OptCategory) Encode(e *jx.Encoder)

Encode encodes Category as json.

func (OptCategory) Get

func (o OptCategory) Get() (v Category, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCategory) IsSet

func (o OptCategory) IsSet() bool

IsSet returns true if OptCategory was set.

func (OptCategory) MarshalJSON

func (s OptCategory) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCategory) Or

func (o OptCategory) Or(d Category) Category

Or returns value if set, or given parameter if does not.

func (*OptCategory) Reset

func (o *OptCategory) Reset()

Reset unsets value.

func (*OptCategory) SetTo

func (o *OptCategory) SetTo(v Category)

SetTo sets value to v.

func (*OptCategory) UnmarshalJSON

func (s *OptCategory) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEnchantmentType

type OptEnchantmentType struct {
	Value EnchantmentType
	Set   bool
}

OptEnchantmentType is optional EnchantmentType.

func NewOptEnchantmentType

func NewOptEnchantmentType(v EnchantmentType) OptEnchantmentType

NewOptEnchantmentType returns new OptEnchantmentType with value set to v.

func (*OptEnchantmentType) Decode

func (o *OptEnchantmentType) Decode(d *jx.Decoder) error

Decode decodes EnchantmentType from json.

func (OptEnchantmentType) Encode

func (o OptEnchantmentType) Encode(e *jx.Encoder)

Encode encodes EnchantmentType as json.

func (OptEnchantmentType) Get

func (o OptEnchantmentType) Get() (v EnchantmentType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEnchantmentType) IsSet

func (o OptEnchantmentType) IsSet() bool

IsSet returns true if OptEnchantmentType was set.

func (OptEnchantmentType) MarshalJSON

func (s OptEnchantmentType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEnchantmentType) Or

Or returns value if set, or given parameter if does not.

func (*OptEnchantmentType) Reset

func (o *OptEnchantmentType) Reset()

Reset unsets value.

func (*OptEnchantmentType) SetTo

func (o *OptEnchantmentType) SetTo(v EnchantmentType)

SetTo sets value to v.

func (*OptEnchantmentType) UnmarshalJSON

func (s *OptEnchantmentType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNbtData

type OptNbtData struct {
	Value NbtData
	Set   bool
}

OptNbtData is optional NbtData.

func NewOptNbtData

func NewOptNbtData(v NbtData) OptNbtData

NewOptNbtData returns new OptNbtData with value set to v.

func (*OptNbtData) Decode

func (o *OptNbtData) Decode(d *jx.Decoder) error

Decode decodes NbtData from json.

func (OptNbtData) Encode

func (o OptNbtData) Encode(e *jx.Encoder)

Encode encodes NbtData as json.

func (OptNbtData) Get

func (o OptNbtData) Get() (v NbtData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNbtData) IsSet

func (o OptNbtData) IsSet() bool

IsSet returns true if OptNbtData was set.

func (OptNbtData) MarshalJSON

func (s OptNbtData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNbtData) Or

func (o OptNbtData) Or(d NbtData) NbtData

Or returns value if set, or given parameter if does not.

func (*OptNbtData) Reset

func (o *OptNbtData) Reset()

Reset unsets value.

func (*OptNbtData) SetTo

func (o *OptNbtData) SetTo(v NbtData)

SetTo sets value to v.

func (*OptNbtData) UnmarshalJSON

func (s *OptNbtData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilAnyArray

type OptNilAnyArray struct {
	Value []jx.Raw
	Set   bool
	Null  bool
}

OptNilAnyArray is optional nullable []jx.Raw.

func NewOptNilAnyArray

func NewOptNilAnyArray(v []jx.Raw) OptNilAnyArray

NewOptNilAnyArray returns new OptNilAnyArray with value set to v.

func (*OptNilAnyArray) Decode

func (o *OptNilAnyArray) Decode(d *jx.Decoder) error

Decode decodes []jx.Raw from json.

func (OptNilAnyArray) Encode

func (o OptNilAnyArray) Encode(e *jx.Encoder)

Encode encodes []jx.Raw as json.

func (OptNilAnyArray) Get

func (o OptNilAnyArray) Get() (v []jx.Raw, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilAnyArray) IsNull

func (o OptNilAnyArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilAnyArray) IsSet

func (o OptNilAnyArray) IsSet() bool

IsSet returns true if OptNilAnyArray was set.

func (OptNilAnyArray) MarshalJSON

func (s OptNilAnyArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilAnyArray) Or

func (o OptNilAnyArray) Or(d []jx.Raw) []jx.Raw

Or returns value if set, or given parameter if does not.

func (*OptNilAnyArray) Reset

func (o *OptNilAnyArray) Reset()

Reset unsets value.

func (*OptNilAnyArray) SetTo

func (o *OptNilAnyArray) SetTo(v []jx.Raw)

SetTo sets value to v.

func (*OptNilAnyArray) UnmarshalJSON

func (s *OptNilAnyArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilEnchantmentArray

type OptNilEnchantmentArray struct {
	Value []Enchantment
	Set   bool
	Null  bool
}

OptNilEnchantmentArray is optional nullable []Enchantment.

func NewOptNilEnchantmentArray

func NewOptNilEnchantmentArray(v []Enchantment) OptNilEnchantmentArray

NewOptNilEnchantmentArray returns new OptNilEnchantmentArray with value set to v.

func (*OptNilEnchantmentArray) Decode

func (o *OptNilEnchantmentArray) Decode(d *jx.Decoder) error

Decode decodes []Enchantment from json.

func (OptNilEnchantmentArray) Encode

func (o OptNilEnchantmentArray) Encode(e *jx.Encoder)

Encode encodes []Enchantment as json.

func (OptNilEnchantmentArray) Get

func (o OptNilEnchantmentArray) Get() (v []Enchantment, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilEnchantmentArray) IsNull

func (o OptNilEnchantmentArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilEnchantmentArray) IsSet

func (o OptNilEnchantmentArray) IsSet() bool

IsSet returns true if OptNilEnchantmentArray was set.

func (OptNilEnchantmentArray) MarshalJSON

func (s OptNilEnchantmentArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEnchantmentArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEnchantmentArray) Reset

func (o *OptNilEnchantmentArray) Reset()

Reset unsets value.

func (*OptNilEnchantmentArray) SetTo

func (o *OptNilEnchantmentArray) SetTo(v []Enchantment)

SetTo sets value to v.

func (*OptNilEnchantmentArray) UnmarshalJSON

func (s *OptNilEnchantmentArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilNBTLookupArray

type OptNilNBTLookupArray struct {
	Value []NBTLookup
	Set   bool
	Null  bool
}

OptNilNBTLookupArray is optional nullable []NBTLookup.

func NewOptNilNBTLookupArray

func NewOptNilNBTLookupArray(v []NBTLookup) OptNilNBTLookupArray

NewOptNilNBTLookupArray returns new OptNilNBTLookupArray with value set to v.

func (*OptNilNBTLookupArray) Decode

func (o *OptNilNBTLookupArray) Decode(d *jx.Decoder) error

Decode decodes []NBTLookup from json.

func (OptNilNBTLookupArray) Encode

func (o OptNilNBTLookupArray) Encode(e *jx.Encoder)

Encode encodes []NBTLookup as json.

func (OptNilNBTLookupArray) Get

func (o OptNilNBTLookupArray) Get() (v []NBTLookup, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilNBTLookupArray) IsNull

func (o OptNilNBTLookupArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilNBTLookupArray) IsSet

func (o OptNilNBTLookupArray) IsSet() bool

IsSet returns true if OptNilNBTLookupArray was set.

func (OptNilNBTLookupArray) MarshalJSON

func (s OptNilNBTLookupArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilNBTLookupArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilNBTLookupArray) Reset

func (o *OptNilNBTLookupArray) Reset()

Reset unsets value.

func (*OptNilNBTLookupArray) SetTo

func (o *OptNilNBTLookupArray) SetTo(v []NBTLookup)

SetTo sets value to v.

func (*OptNilNBTLookupArray) UnmarshalJSON

func (s *OptNilNBTLookupArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilNbtDataData

type OptNilNbtDataData struct {
	Value NbtDataData
	Set   bool
	Null  bool
}

OptNilNbtDataData is optional nullable NbtDataData.

func NewOptNilNbtDataData

func NewOptNilNbtDataData(v NbtDataData) OptNilNbtDataData

NewOptNilNbtDataData returns new OptNilNbtDataData with value set to v.

func (*OptNilNbtDataData) Decode

func (o *OptNilNbtDataData) Decode(d *jx.Decoder) error

Decode decodes NbtDataData from json.

func (OptNilNbtDataData) Encode

func (o OptNilNbtDataData) Encode(e *jx.Encoder)

Encode encodes NbtDataData as json.

func (OptNilNbtDataData) Get

func (o OptNilNbtDataData) Get() (v NbtDataData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilNbtDataData) IsNull

func (o OptNilNbtDataData) IsNull() bool

IsSet returns true if value is Null.

func (OptNilNbtDataData) IsSet

func (o OptNilNbtDataData) IsSet() bool

IsSet returns true if OptNilNbtDataData was set.

func (OptNilNbtDataData) MarshalJSON

func (s OptNilNbtDataData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilNbtDataData) Or

Or returns value if set, or given parameter if does not.

func (*OptNilNbtDataData) Reset

func (o *OptNilNbtDataData) Reset()

Reset unsets value.

func (*OptNilNbtDataData) SetTo

func (o *OptNilNbtDataData) SetTo(v NbtDataData)

SetTo sets value to v.

func (*OptNilNbtDataData) UnmarshalJSON

func (s *OptNilNbtDataData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSaveAuctionContext

type OptNilSaveAuctionContext struct {
	Value SaveAuctionContext
	Set   bool
	Null  bool
}

OptNilSaveAuctionContext is optional nullable SaveAuctionContext.

func NewOptNilSaveAuctionContext

func NewOptNilSaveAuctionContext(v SaveAuctionContext) OptNilSaveAuctionContext

NewOptNilSaveAuctionContext returns new OptNilSaveAuctionContext with value set to v.

func (*OptNilSaveAuctionContext) Decode

func (o *OptNilSaveAuctionContext) Decode(d *jx.Decoder) error

Decode decodes SaveAuctionContext from json.

func (OptNilSaveAuctionContext) Encode

func (o OptNilSaveAuctionContext) Encode(e *jx.Encoder)

Encode encodes SaveAuctionContext as json.

func (OptNilSaveAuctionContext) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSaveAuctionContext) IsNull

func (o OptNilSaveAuctionContext) IsNull() bool

IsSet returns true if value is Null.

func (OptNilSaveAuctionContext) IsSet

func (o OptNilSaveAuctionContext) IsSet() bool

IsSet returns true if OptNilSaveAuctionContext was set.

func (OptNilSaveAuctionContext) MarshalJSON

func (s OptNilSaveAuctionContext) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSaveAuctionContext) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSaveAuctionContext) Reset

func (o *OptNilSaveAuctionContext) Reset()

Reset unsets value.

func (*OptNilSaveAuctionContext) SetTo

SetTo sets value to v.

func (*OptNilSaveAuctionContext) UnmarshalJSON

func (s *OptNilSaveAuctionContext) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSaveAuctionFlatNbt

type OptNilSaveAuctionFlatNbt struct {
	Value SaveAuctionFlatNbt
	Set   bool
	Null  bool
}

OptNilSaveAuctionFlatNbt is optional nullable SaveAuctionFlatNbt.

func NewOptNilSaveAuctionFlatNbt

func NewOptNilSaveAuctionFlatNbt(v SaveAuctionFlatNbt) OptNilSaveAuctionFlatNbt

NewOptNilSaveAuctionFlatNbt returns new OptNilSaveAuctionFlatNbt with value set to v.

func (*OptNilSaveAuctionFlatNbt) Decode

func (o *OptNilSaveAuctionFlatNbt) Decode(d *jx.Decoder) error

Decode decodes SaveAuctionFlatNbt from json.

func (OptNilSaveAuctionFlatNbt) Encode

func (o OptNilSaveAuctionFlatNbt) Encode(e *jx.Encoder)

Encode encodes SaveAuctionFlatNbt as json.

func (OptNilSaveAuctionFlatNbt) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSaveAuctionFlatNbt) IsNull

func (o OptNilSaveAuctionFlatNbt) IsNull() bool

IsSet returns true if value is Null.

func (OptNilSaveAuctionFlatNbt) IsSet

func (o OptNilSaveAuctionFlatNbt) IsSet() bool

IsSet returns true if OptNilSaveAuctionFlatNbt was set.

func (OptNilSaveAuctionFlatNbt) MarshalJSON

func (s OptNilSaveAuctionFlatNbt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSaveAuctionFlatNbt) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSaveAuctionFlatNbt) Reset

func (o *OptNilSaveAuctionFlatNbt) Reset()

Reset unsets value.

func (*OptNilSaveAuctionFlatNbt) SetTo

SetTo sets value to v.

func (*OptNilSaveAuctionFlatNbt) UnmarshalJSON

func (s *OptNilSaveAuctionFlatNbt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSaveAuctionTraceContext

type OptNilSaveAuctionTraceContext struct {
	Value SaveAuctionTraceContext
	Set   bool
	Null  bool
}

OptNilSaveAuctionTraceContext is optional nullable SaveAuctionTraceContext.

func NewOptNilSaveAuctionTraceContext

func NewOptNilSaveAuctionTraceContext(v SaveAuctionTraceContext) OptNilSaveAuctionTraceContext

NewOptNilSaveAuctionTraceContext returns new OptNilSaveAuctionTraceContext with value set to v.

func (*OptNilSaveAuctionTraceContext) Decode

Decode decodes SaveAuctionTraceContext from json.

func (OptNilSaveAuctionTraceContext) Encode

Encode encodes SaveAuctionTraceContext as json.

func (OptNilSaveAuctionTraceContext) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilSaveAuctionTraceContext) IsNull

IsSet returns true if value is Null.

func (OptNilSaveAuctionTraceContext) IsSet

IsSet returns true if OptNilSaveAuctionTraceContext was set.

func (OptNilSaveAuctionTraceContext) MarshalJSON

func (s OptNilSaveAuctionTraceContext) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSaveAuctionTraceContext) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSaveAuctionTraceContext) Reset

func (o *OptNilSaveAuctionTraceContext) Reset()

Reset unsets value.

func (*OptNilSaveAuctionTraceContext) SetTo

SetTo sets value to v.

func (*OptNilSaveAuctionTraceContext) UnmarshalJSON

func (s *OptNilSaveAuctionTraceContext) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSaveBidsArray

type OptNilSaveBidsArray struct {
	Value []SaveBids
	Set   bool
	Null  bool
}

OptNilSaveBidsArray is optional nullable []SaveBids.

func NewOptNilSaveBidsArray

func NewOptNilSaveBidsArray(v []SaveBids) OptNilSaveBidsArray

NewOptNilSaveBidsArray returns new OptNilSaveBidsArray with value set to v.

func (*OptNilSaveBidsArray) Decode

func (o *OptNilSaveBidsArray) Decode(d *jx.Decoder) error

Decode decodes []SaveBids from json.

func (OptNilSaveBidsArray) Encode

func (o OptNilSaveBidsArray) Encode(e *jx.Encoder)

Encode encodes []SaveBids as json.

func (OptNilSaveBidsArray) Get

func (o OptNilSaveBidsArray) Get() (v []SaveBids, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilSaveBidsArray) IsNull

func (o OptNilSaveBidsArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilSaveBidsArray) IsSet

func (o OptNilSaveBidsArray) IsSet() bool

IsSet returns true if OptNilSaveBidsArray was set.

func (OptNilSaveBidsArray) MarshalJSON

func (s OptNilSaveBidsArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSaveBidsArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSaveBidsArray) Reset

func (o *OptNilSaveBidsArray) Reset()

Reset unsets value.

func (*OptNilSaveBidsArray) SetTo

func (o *OptNilSaveBidsArray) SetTo(v []SaveBids)

SetTo sets value to v.

func (*OptNilSaveBidsArray) UnmarshalJSON

func (s *OptNilSaveBidsArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsSet returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilStringArray

type OptNilStringArray struct {
	Value []string
	Set   bool
	Null  bool
}

OptNilStringArray is optional nullable []string.

func NewOptNilStringArray

func NewOptNilStringArray(v []string) OptNilStringArray

NewOptNilStringArray returns new OptNilStringArray with value set to v.

func (*OptNilStringArray) Decode

func (o *OptNilStringArray) Decode(d *jx.Decoder) error

Decode decodes []string from json.

func (OptNilStringArray) Encode

func (o OptNilStringArray) Encode(e *jx.Encoder)

Encode encodes []string as json.

func (OptNilStringArray) Get

func (o OptNilStringArray) Get() (v []string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilStringArray) IsNull

func (o OptNilStringArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilStringArray) IsSet

func (o OptNilStringArray) IsSet() bool

IsSet returns true if OptNilStringArray was set.

func (OptNilStringArray) MarshalJSON

func (s OptNilStringArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilStringArray) Or

func (o OptNilStringArray) Or(d []string) []string

Or returns value if set, or given parameter if does not.

func (*OptNilStringArray) Reset

func (o *OptNilStringArray) Reset()

Reset unsets value.

func (*OptNilStringArray) SetTo

func (o *OptNilStringArray) SetTo(v []string)

SetTo sets value to v.

func (*OptNilStringArray) UnmarshalJSON

func (s *OptNilStringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUUIDArray

type OptNilUUIDArray struct {
	Value []UUID
	Set   bool
	Null  bool
}

OptNilUUIDArray is optional nullable []UUID.

func NewOptNilUUIDArray

func NewOptNilUUIDArray(v []UUID) OptNilUUIDArray

NewOptNilUUIDArray returns new OptNilUUIDArray with value set to v.

func (*OptNilUUIDArray) Decode

func (o *OptNilUUIDArray) Decode(d *jx.Decoder) error

Decode decodes []UUID from json.

func (OptNilUUIDArray) Encode

func (o OptNilUUIDArray) Encode(e *jx.Encoder)

Encode encodes []UUID as json.

func (OptNilUUIDArray) Get

func (o OptNilUUIDArray) Get() (v []UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilUUIDArray) IsNull

func (o OptNilUUIDArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilUUIDArray) IsSet

func (o OptNilUUIDArray) IsSet() bool

IsSet returns true if OptNilUUIDArray was set.

func (OptNilUUIDArray) MarshalJSON

func (s OptNilUUIDArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilUUIDArray) Or

func (o OptNilUUIDArray) Or(d []UUID) []UUID

Or returns value if set, or given parameter if does not.

func (*OptNilUUIDArray) Reset

func (o *OptNilUUIDArray) Reset()

Reset unsets value.

func (*OptNilUUIDArray) SetTo

func (o *OptNilUUIDArray) SetTo(v []UUID)

SetTo sets value to v.

func (*OptNilUUIDArray) UnmarshalJSON

func (s *OptNilUUIDArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptReforge

type OptReforge struct {
	Value Reforge
	Set   bool
}

OptReforge is optional Reforge.

func NewOptReforge

func NewOptReforge(v Reforge) OptReforge

NewOptReforge returns new OptReforge with value set to v.

func (*OptReforge) Decode

func (o *OptReforge) Decode(d *jx.Decoder) error

Decode decodes Reforge from json.

func (OptReforge) Encode

func (o OptReforge) Encode(e *jx.Encoder)

Encode encodes Reforge as json.

func (OptReforge) Get

func (o OptReforge) Get() (v Reforge, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptReforge) IsSet

func (o OptReforge) IsSet() bool

IsSet returns true if OptReforge was set.

func (OptReforge) MarshalJSON

func (s OptReforge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptReforge) Or

func (o OptReforge) Or(d Reforge) Reforge

Or returns value if set, or given parameter if does not.

func (*OptReforge) Reset

func (o *OptReforge) Reset()

Reset unsets value.

func (*OptReforge) SetTo

func (o *OptReforge) SetTo(v Reforge)

SetTo sets value to v.

func (*OptReforge) UnmarshalJSON

func (s *OptReforge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSaveAuction

type OptSaveAuction struct {
	Value SaveAuction
	Set   bool
}

OptSaveAuction is optional SaveAuction.

func NewOptSaveAuction

func NewOptSaveAuction(v SaveAuction) OptSaveAuction

NewOptSaveAuction returns new OptSaveAuction with value set to v.

func (*OptSaveAuction) Decode

func (o *OptSaveAuction) Decode(d *jx.Decoder) error

Decode decodes SaveAuction from json.

func (OptSaveAuction) Encode

func (o OptSaveAuction) Encode(e *jx.Encoder)

Encode encodes SaveAuction as json.

func (OptSaveAuction) Get

func (o OptSaveAuction) Get() (v SaveAuction, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSaveAuction) IsSet

func (o OptSaveAuction) IsSet() bool

IsSet returns true if OptSaveAuction was set.

func (OptSaveAuction) MarshalJSON

func (s OptSaveAuction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSaveAuction) Or

Or returns value if set, or given parameter if does not.

func (*OptSaveAuction) Reset

func (o *OptSaveAuction) Reset()

Reset unsets value.

func (*OptSaveAuction) SetTo

func (o *OptSaveAuction) SetTo(v SaveAuction)

SetTo sets value to v.

func (*OptSaveAuction) UnmarshalJSON

func (s *OptSaveAuction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

type OptTier

type OptTier struct {
	Value Tier
	Set   bool
}

OptTier is optional Tier.

func NewOptTier

func NewOptTier(v Tier) OptTier

NewOptTier returns new OptTier with value set to v.

func (*OptTier) Decode

func (o *OptTier) Decode(d *jx.Decoder) error

Decode decodes Tier from json.

func (OptTier) Encode

func (o OptTier) Encode(e *jx.Encoder)

Encode encodes Tier as json.

func (OptTier) Get

func (o OptTier) Get() (v Tier, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTier) IsSet

func (o OptTier) IsSet() bool

IsSet returns true if OptTier was set.

func (OptTier) MarshalJSON

func (s OptTier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTier) Or

func (o OptTier) Or(d Tier) Tier

Or returns value if set, or given parameter if does not.

func (*OptTier) Reset

func (o *OptTier) Reset()

Reset unsets value.

func (*OptTier) SetTo

func (o *OptTier) SetTo(v Tier)

SetTo sets value to v.

func (*OptTier) UnmarshalJSON

func (s *OptTier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the metric.NewNoopMeterProvider is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type ProxyHypixelAhPlayerPlayerUuidGetParams

type ProxyHypixelAhPlayerPlayerUuidGetParams struct {
	PlayerUuid string
	// Prefilter auctions to end in the future or less than x seconds ago, 0 is no limit (default).
	MaxAgeSeconds OptInt32
	// Identifer for whoever provided the hint.
	HintOwner OptString
}

ProxyHypixelAhPlayerPlayerUuidGetParams is parameters of GET /Proxy/hypixel/ah/player/{playerUuid} operation.

type ProxyHypixelGetOKApplicationJSON

type ProxyHypixelGetOKApplicationJSON string

func (*ProxyHypixelGetOKApplicationJSON) Decode

Decode decodes ProxyHypixelGetOKApplicationJSON from json.

func (ProxyHypixelGetOKApplicationJSON) Encode

Encode encodes ProxyHypixelGetOKApplicationJSON as json.

func (ProxyHypixelGetOKApplicationJSON) MarshalJSON

func (s ProxyHypixelGetOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProxyHypixelGetOKApplicationJSON) UnmarshalJSON

func (s *ProxyHypixelGetOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProxyHypixelGetOKTextJSON

type ProxyHypixelGetOKTextJSON struct {
	Data io.Reader
}

func (ProxyHypixelGetOKTextJSON) Read

func (s ProxyHypixelGetOKTextJSON) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ProxyHypixelGetOKTextPlain

type ProxyHypixelGetOKTextPlain struct {
	Data io.Reader
}

func (ProxyHypixelGetOKTextPlain) Read

func (s ProxyHypixelGetOKTextPlain) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ProxyHypixelGetParams

type ProxyHypixelGetParams struct {
	Path OptString
}

ProxyHypixelGetParams is parameters of GET /Proxy/hypixel operation.

type ProxyHypixelGetRes

type ProxyHypixelGetRes interface {
	// contains filtered or unexported methods
}

type ProxyHypixelStatusGetOK

type ProxyHypixelStatusGetOK struct{}

ProxyHypixelStatusGetOK is response for ProxyHypixelStatusGet operation.

type Reforge

type Reforge int32

Ref: #/components/schemas/Reforge

const (
	Reforge0   Reforge = 0
	Reforge1   Reforge = 1
	Reforge2   Reforge = 2
	Reforge3   Reforge = 3
	Reforge4   Reforge = 4
	Reforge5   Reforge = 5
	Reforge6   Reforge = 6
	Reforge7   Reforge = 7
	Reforge8   Reforge = 8
	Reforge9   Reforge = 9
	Reforge10  Reforge = 10
	Reforge11  Reforge = 11
	Reforge12  Reforge = 12
	Reforge13  Reforge = 13
	Reforge14  Reforge = 14
	Reforge15  Reforge = 15
	Reforge16  Reforge = 16
	Reforge17  Reforge = 17
	Reforge18  Reforge = 18
	Reforge19  Reforge = 19
	Reforge20  Reforge = 20
	Reforge21  Reforge = 21
	Reforge22  Reforge = 22
	Reforge23  Reforge = 23
	Reforge24  Reforge = 24
	Reforge25  Reforge = 25
	Reforge26  Reforge = 26
	Reforge27  Reforge = 27
	Reforge28  Reforge = 28
	Reforge29  Reforge = 29
	Reforge30  Reforge = 30
	Reforge31  Reforge = 31
	Reforge32  Reforge = 32
	Reforge33  Reforge = 33
	Reforge34  Reforge = 34
	Reforge35  Reforge = 35
	Reforge36  Reforge = 36
	Reforge37  Reforge = 37
	Reforge38  Reforge = 38
	Reforge39  Reforge = 39
	Reforge40  Reforge = 40
	Reforge41  Reforge = 41
	Reforge42  Reforge = 42
	Reforge43  Reforge = 43
	Reforge44  Reforge = 44
	Reforge45  Reforge = 45
	Reforge46  Reforge = 46
	Reforge47  Reforge = 47
	Reforge48  Reforge = 48
	Reforge49  Reforge = 49
	Reforge50  Reforge = 50
	Reforge51  Reforge = 51
	Reforge52  Reforge = 52
	Reforge53  Reforge = 53
	Reforge54  Reforge = 54
	Reforge55  Reforge = 55
	Reforge56  Reforge = 56
	Reforge57  Reforge = 57
	Reforge58  Reforge = 58
	Reforge59  Reforge = 59
	Reforge60  Reforge = 60
	Reforge61  Reforge = 61
	Reforge62  Reforge = 62
	Reforge63  Reforge = 63
	Reforge64  Reforge = 64
	Reforge65  Reforge = 65
	Reforge66  Reforge = 66
	Reforge67  Reforge = 67
	Reforge68  Reforge = 68
	Reforge69  Reforge = 69
	Reforge70  Reforge = 70
	Reforge71  Reforge = 71
	Reforge72  Reforge = 72
	Reforge73  Reforge = 73
	Reforge74  Reforge = 74
	Reforge75  Reforge = 75
	Reforge76  Reforge = 76
	Reforge77  Reforge = 77
	Reforge78  Reforge = 78
	Reforge79  Reforge = 79
	Reforge80  Reforge = 80
	Reforge81  Reforge = 81
	Reforge82  Reforge = 82
	Reforge83  Reforge = 83
	Reforge84  Reforge = 84
	Reforge85  Reforge = 85
	Reforge86  Reforge = 86
	Reforge87  Reforge = 87
	Reforge88  Reforge = 88
	Reforge89  Reforge = 89
	Reforge90  Reforge = 90
	Reforge91  Reforge = 91
	Reforge92  Reforge = 92
	Reforge93  Reforge = 93
	Reforge94  Reforge = 94
	Reforge95  Reforge = 95
	Reforge96  Reforge = 96
	Reforge97  Reforge = 97
	Reforge98  Reforge = 98
	Reforge99  Reforge = 99
	Reforge100 Reforge = 100
	Reforge101 Reforge = 101
	Reforge102 Reforge = 102
	Reforge103 Reforge = 103
	Reforge104 Reforge = 104
	Reforge105 Reforge = 105
	Reforge106 Reforge = 106
	Reforge107 Reforge = 107
	Reforge108 Reforge = 108
	Reforge109 Reforge = 109
	Reforge110 Reforge = 110
	Reforge111 Reforge = 111
	Reforge112 Reforge = 112
	Reforge113 Reforge = 113
	Reforge114 Reforge = 114
	Reforge115 Reforge = 115
	Reforge116 Reforge = 116
	Reforge117 Reforge = 117
	Reforge118 Reforge = 118
	Reforge119 Reforge = 119
	Reforge120 Reforge = 120
	Reforge125 Reforge = 125
	Reforge126 Reforge = 126
)

func (*Reforge) Decode

func (s *Reforge) Decode(d *jx.Decoder) error

Decode decodes Reforge from json.

func (Reforge) Encode

func (s Reforge) Encode(e *jx.Encoder)

Encode encodes Reforge as json.

func (Reforge) MarshalJSON

func (s Reforge) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Reforge) UnmarshalJSON

func (s *Reforge) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Reforge) Validate

func (s Reforge) Validate() error

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

type SaveAuction

type SaveAuction struct {
	ID               OptInt32                      `json:"id"`
	UUID             OptNilString                  `json:"uuid"`
	Claimed          OptBool                       `json:"claimed"`
	Count            OptInt32                      `json:"count"`
	StartingBid      OptInt64                      `json:"startingBid"`
	OldTier          OptNilString                  `json:"oldTier"`
	OldCategory      OptNilString                  `json:"oldCategory"`
	Tag              OptNilString                  `json:"tag"`
	ItemName         OptNilString                  `json:"itemName"`
	Start            OptDateTime                   `json:"start"`
	End              OptDateTime                   `json:"end"`
	AuctioneerId     OptNilString                  `json:"auctioneerId"`
	ProfileId        OptNilString                  `json:"profileId"`
	Coop             OptNilStringArray             `json:"coop"`
	CoopMembers      OptNilUUIDArray               `json:"coopMembers"`
	ClaimedBidders   OptNilAnyArray                `json:"claimedBidders"`
	ClaimedBids      OptNilUUIDArray               `json:"claimedBids"`
	HighestBidAmount OptInt64                      `json:"highestBidAmount"`
	Bids             OptNilSaveBidsArray           `json:"bids"`
	AnvilUses        OptInt32                      `json:"anvilUses"`
	Enchantments     OptNilEnchantmentArray        `json:"enchantments"`
	NbtData          OptNbtData                    `json:"nbtData"`
	ItemCreatedAt    OptDateTime                   `json:"itemCreatedAt"`
	Reforge          OptReforge                    `json:"reforge"`
	Category         OptCategory                   `json:"category"`
	Tier             OptTier                       `json:"tier"`
	Bin              OptBool                       `json:"bin"`
	SellerId         OptInt32                      `json:"sellerId"`
	ItemId           OptInt32                      `json:"itemId"`
	NbtLookup        OptNilNBTLookupArray          `json:"nbtLookup"`
	FlatNbt          OptNilSaveAuctionFlatNbt      `json:"flatNbt"`
	UID              OptInt64                      `json:"uId"`
	FindTime         OptDateTime                   `json:"findTime"`
	TraceContext     OptNilSaveAuctionTraceContext `json:"traceContext"`
	Context          OptNilSaveAuctionContext      `json:"context"`
}

Ref: #/components/schemas/SaveAuction

func (*SaveAuction) Decode

func (s *SaveAuction) Decode(d *jx.Decoder) error

Decode decodes SaveAuction from json.

func (*SaveAuction) Encode

func (s *SaveAuction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SaveAuction) GetAnvilUses

func (s *SaveAuction) GetAnvilUses() OptInt32

GetAnvilUses returns the value of AnvilUses.

func (*SaveAuction) GetAuctioneerId

func (s *SaveAuction) GetAuctioneerId() OptNilString

GetAuctioneerId returns the value of AuctioneerId.

func (*SaveAuction) GetBids

func (s *SaveAuction) GetBids() OptNilSaveBidsArray

GetBids returns the value of Bids.

func (*SaveAuction) GetBin

func (s *SaveAuction) GetBin() OptBool

GetBin returns the value of Bin.

func (*SaveAuction) GetCategory

func (s *SaveAuction) GetCategory() OptCategory

GetCategory returns the value of Category.

func (*SaveAuction) GetClaimed

func (s *SaveAuction) GetClaimed() OptBool

GetClaimed returns the value of Claimed.

func (*SaveAuction) GetClaimedBidders

func (s *SaveAuction) GetClaimedBidders() OptNilAnyArray

GetClaimedBidders returns the value of ClaimedBidders.

func (*SaveAuction) GetClaimedBids

func (s *SaveAuction) GetClaimedBids() OptNilUUIDArray

GetClaimedBids returns the value of ClaimedBids.

func (*SaveAuction) GetContext

func (s *SaveAuction) GetContext() OptNilSaveAuctionContext

GetContext returns the value of Context.

func (*SaveAuction) GetCoop

func (s *SaveAuction) GetCoop() OptNilStringArray

GetCoop returns the value of Coop.

func (*SaveAuction) GetCoopMembers

func (s *SaveAuction) GetCoopMembers() OptNilUUIDArray

GetCoopMembers returns the value of CoopMembers.

func (*SaveAuction) GetCount

func (s *SaveAuction) GetCount() OptInt32

GetCount returns the value of Count.

func (*SaveAuction) GetEnchantments

func (s *SaveAuction) GetEnchantments() OptNilEnchantmentArray

GetEnchantments returns the value of Enchantments.

func (*SaveAuction) GetEnd

func (s *SaveAuction) GetEnd() OptDateTime

GetEnd returns the value of End.

func (*SaveAuction) GetFindTime

func (s *SaveAuction) GetFindTime() OptDateTime

GetFindTime returns the value of FindTime.

func (*SaveAuction) GetFlatNbt

func (s *SaveAuction) GetFlatNbt() OptNilSaveAuctionFlatNbt

GetFlatNbt returns the value of FlatNbt.

func (*SaveAuction) GetHighestBidAmount

func (s *SaveAuction) GetHighestBidAmount() OptInt64

GetHighestBidAmount returns the value of HighestBidAmount.

func (*SaveAuction) GetID

func (s *SaveAuction) GetID() OptInt32

GetID returns the value of ID.

func (*SaveAuction) GetItemCreatedAt

func (s *SaveAuction) GetItemCreatedAt() OptDateTime

GetItemCreatedAt returns the value of ItemCreatedAt.

func (*SaveAuction) GetItemId

func (s *SaveAuction) GetItemId() OptInt32

GetItemId returns the value of ItemId.

func (*SaveAuction) GetItemName

func (s *SaveAuction) GetItemName() OptNilString

GetItemName returns the value of ItemName.

func (*SaveAuction) GetNbtData

func (s *SaveAuction) GetNbtData() OptNbtData

GetNbtData returns the value of NbtData.

func (*SaveAuction) GetNbtLookup

func (s *SaveAuction) GetNbtLookup() OptNilNBTLookupArray

GetNbtLookup returns the value of NbtLookup.

func (*SaveAuction) GetOldCategory

func (s *SaveAuction) GetOldCategory() OptNilString

GetOldCategory returns the value of OldCategory.

func (*SaveAuction) GetOldTier

func (s *SaveAuction) GetOldTier() OptNilString

GetOldTier returns the value of OldTier.

func (*SaveAuction) GetProfileId

func (s *SaveAuction) GetProfileId() OptNilString

GetProfileId returns the value of ProfileId.

func (*SaveAuction) GetReforge

func (s *SaveAuction) GetReforge() OptReforge

GetReforge returns the value of Reforge.

func (*SaveAuction) GetSellerId

func (s *SaveAuction) GetSellerId() OptInt32

GetSellerId returns the value of SellerId.

func (*SaveAuction) GetStart

func (s *SaveAuction) GetStart() OptDateTime

GetStart returns the value of Start.

func (*SaveAuction) GetStartingBid

func (s *SaveAuction) GetStartingBid() OptInt64

GetStartingBid returns the value of StartingBid.

func (*SaveAuction) GetTag

func (s *SaveAuction) GetTag() OptNilString

GetTag returns the value of Tag.

func (*SaveAuction) GetTier

func (s *SaveAuction) GetTier() OptTier

GetTier returns the value of Tier.

func (*SaveAuction) GetTraceContext

func (s *SaveAuction) GetTraceContext() OptNilSaveAuctionTraceContext

GetTraceContext returns the value of TraceContext.

func (*SaveAuction) GetUID

func (s *SaveAuction) GetUID() OptInt64

GetUID returns the value of UID.

func (*SaveAuction) GetUUID

func (s *SaveAuction) GetUUID() OptNilString

GetUUID returns the value of UUID.

func (*SaveAuction) MarshalJSON

func (s *SaveAuction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SaveAuction) SetAnvilUses

func (s *SaveAuction) SetAnvilUses(val OptInt32)

SetAnvilUses sets the value of AnvilUses.

func (*SaveAuction) SetAuctioneerId

func (s *SaveAuction) SetAuctioneerId(val OptNilString)

SetAuctioneerId sets the value of AuctioneerId.

func (*SaveAuction) SetBids

func (s *SaveAuction) SetBids(val OptNilSaveBidsArray)

SetBids sets the value of Bids.

func (*SaveAuction) SetBin

func (s *SaveAuction) SetBin(val OptBool)

SetBin sets the value of Bin.

func (*SaveAuction) SetCategory

func (s *SaveAuction) SetCategory(val OptCategory)

SetCategory sets the value of Category.

func (*SaveAuction) SetClaimed

func (s *SaveAuction) SetClaimed(val OptBool)

SetClaimed sets the value of Claimed.

func (*SaveAuction) SetClaimedBidders

func (s *SaveAuction) SetClaimedBidders(val OptNilAnyArray)

SetClaimedBidders sets the value of ClaimedBidders.

func (*SaveAuction) SetClaimedBids

func (s *SaveAuction) SetClaimedBids(val OptNilUUIDArray)

SetClaimedBids sets the value of ClaimedBids.

func (*SaveAuction) SetContext

func (s *SaveAuction) SetContext(val OptNilSaveAuctionContext)

SetContext sets the value of Context.

func (*SaveAuction) SetCoop

func (s *SaveAuction) SetCoop(val OptNilStringArray)

SetCoop sets the value of Coop.

func (*SaveAuction) SetCoopMembers

func (s *SaveAuction) SetCoopMembers(val OptNilUUIDArray)

SetCoopMembers sets the value of CoopMembers.

func (*SaveAuction) SetCount

func (s *SaveAuction) SetCount(val OptInt32)

SetCount sets the value of Count.

func (*SaveAuction) SetEnchantments

func (s *SaveAuction) SetEnchantments(val OptNilEnchantmentArray)

SetEnchantments sets the value of Enchantments.

func (*SaveAuction) SetEnd

func (s *SaveAuction) SetEnd(val OptDateTime)

SetEnd sets the value of End.

func (*SaveAuction) SetFindTime

func (s *SaveAuction) SetFindTime(val OptDateTime)

SetFindTime sets the value of FindTime.

func (*SaveAuction) SetFlatNbt

func (s *SaveAuction) SetFlatNbt(val OptNilSaveAuctionFlatNbt)

SetFlatNbt sets the value of FlatNbt.

func (*SaveAuction) SetHighestBidAmount

func (s *SaveAuction) SetHighestBidAmount(val OptInt64)

SetHighestBidAmount sets the value of HighestBidAmount.

func (*SaveAuction) SetID

func (s *SaveAuction) SetID(val OptInt32)

SetID sets the value of ID.

func (*SaveAuction) SetItemCreatedAt

func (s *SaveAuction) SetItemCreatedAt(val OptDateTime)

SetItemCreatedAt sets the value of ItemCreatedAt.

func (*SaveAuction) SetItemId

func (s *SaveAuction) SetItemId(val OptInt32)

SetItemId sets the value of ItemId.

func (*SaveAuction) SetItemName

func (s *SaveAuction) SetItemName(val OptNilString)

SetItemName sets the value of ItemName.

func (*SaveAuction) SetNbtData

func (s *SaveAuction) SetNbtData(val OptNbtData)

SetNbtData sets the value of NbtData.

func (*SaveAuction) SetNbtLookup

func (s *SaveAuction) SetNbtLookup(val OptNilNBTLookupArray)

SetNbtLookup sets the value of NbtLookup.

func (*SaveAuction) SetOldCategory

func (s *SaveAuction) SetOldCategory(val OptNilString)

SetOldCategory sets the value of OldCategory.

func (*SaveAuction) SetOldTier

func (s *SaveAuction) SetOldTier(val OptNilString)

SetOldTier sets the value of OldTier.

func (*SaveAuction) SetProfileId

func (s *SaveAuction) SetProfileId(val OptNilString)

SetProfileId sets the value of ProfileId.

func (*SaveAuction) SetReforge

func (s *SaveAuction) SetReforge(val OptReforge)

SetReforge sets the value of Reforge.

func (*SaveAuction) SetSellerId

func (s *SaveAuction) SetSellerId(val OptInt32)

SetSellerId sets the value of SellerId.

func (*SaveAuction) SetStart

func (s *SaveAuction) SetStart(val OptDateTime)

SetStart sets the value of Start.

func (*SaveAuction) SetStartingBid

func (s *SaveAuction) SetStartingBid(val OptInt64)

SetStartingBid sets the value of StartingBid.

func (*SaveAuction) SetTag

func (s *SaveAuction) SetTag(val OptNilString)

SetTag sets the value of Tag.

func (*SaveAuction) SetTier

func (s *SaveAuction) SetTier(val OptTier)

SetTier sets the value of Tier.

func (*SaveAuction) SetTraceContext

func (s *SaveAuction) SetTraceContext(val OptNilSaveAuctionTraceContext)

SetTraceContext sets the value of TraceContext.

func (*SaveAuction) SetUID

func (s *SaveAuction) SetUID(val OptInt64)

SetUID sets the value of UID.

func (*SaveAuction) SetUUID

func (s *SaveAuction) SetUUID(val OptNilString)

SetUUID sets the value of UUID.

func (*SaveAuction) UnmarshalJSON

func (s *SaveAuction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SaveAuction) Validate

func (s *SaveAuction) Validate() error

type SaveAuctionContext

type SaveAuctionContext map[string]string

func (*SaveAuctionContext) Decode

func (s *SaveAuctionContext) Decode(d *jx.Decoder) error

Decode decodes SaveAuctionContext from json.

func (SaveAuctionContext) Encode

func (s SaveAuctionContext) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SaveAuctionContext) MarshalJSON

func (s SaveAuctionContext) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SaveAuctionContext) UnmarshalJSON

func (s *SaveAuctionContext) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SaveAuctionFlatNbt

type SaveAuctionFlatNbt map[string]string

func (*SaveAuctionFlatNbt) Decode

func (s *SaveAuctionFlatNbt) Decode(d *jx.Decoder) error

Decode decodes SaveAuctionFlatNbt from json.

func (SaveAuctionFlatNbt) Encode

func (s SaveAuctionFlatNbt) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SaveAuctionFlatNbt) MarshalJSON

func (s SaveAuctionFlatNbt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SaveAuctionFlatNbt) UnmarshalJSON

func (s *SaveAuctionFlatNbt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SaveAuctionTraceContext

type SaveAuctionTraceContext map[string]string

func (*SaveAuctionTraceContext) Decode

func (s *SaveAuctionTraceContext) Decode(d *jx.Decoder) error

Decode decodes SaveAuctionTraceContext from json.

func (SaveAuctionTraceContext) Encode

func (s SaveAuctionTraceContext) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (SaveAuctionTraceContext) MarshalJSON

func (s SaveAuctionTraceContext) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SaveAuctionTraceContext) UnmarshalJSON

func (s *SaveAuctionTraceContext) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SaveBids

type SaveBids struct {
	ID        OptInt32       `json:"id"`
	Auction   OptSaveAuction `json:"auction"`
	Bidder    OptNilString   `json:"bidder"`
	ProfileId OptNilString   `json:"profileId"`
	Amount    OptInt64       `json:"amount"`
	Timestamp OptDateTime    `json:"timestamp"`
	BidderId  OptInt32       `json:"bidderId"`
}

Ref: #/components/schemas/SaveBids

func (*SaveBids) Decode

func (s *SaveBids) Decode(d *jx.Decoder) error

Decode decodes SaveBids from json.

func (*SaveBids) Encode

func (s *SaveBids) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SaveBids) GetAmount

func (s *SaveBids) GetAmount() OptInt64

GetAmount returns the value of Amount.

func (*SaveBids) GetAuction

func (s *SaveBids) GetAuction() OptSaveAuction

GetAuction returns the value of Auction.

func (*SaveBids) GetBidder

func (s *SaveBids) GetBidder() OptNilString

GetBidder returns the value of Bidder.

func (*SaveBids) GetBidderId

func (s *SaveBids) GetBidderId() OptInt32

GetBidderId returns the value of BidderId.

func (*SaveBids) GetID

func (s *SaveBids) GetID() OptInt32

GetID returns the value of ID.

func (*SaveBids) GetProfileId

func (s *SaveBids) GetProfileId() OptNilString

GetProfileId returns the value of ProfileId.

func (*SaveBids) GetTimestamp

func (s *SaveBids) GetTimestamp() OptDateTime

GetTimestamp returns the value of Timestamp.

func (*SaveBids) MarshalJSON

func (s *SaveBids) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SaveBids) SetAmount

func (s *SaveBids) SetAmount(val OptInt64)

SetAmount sets the value of Amount.

func (*SaveBids) SetAuction

func (s *SaveBids) SetAuction(val OptSaveAuction)

SetAuction sets the value of Auction.

func (*SaveBids) SetBidder

func (s *SaveBids) SetBidder(val OptNilString)

SetBidder sets the value of Bidder.

func (*SaveBids) SetBidderId

func (s *SaveBids) SetBidderId(val OptInt32)

SetBidderId sets the value of BidderId.

func (*SaveBids) SetID

func (s *SaveBids) SetID(val OptInt32)

SetID sets the value of ID.

func (*SaveBids) SetProfileId

func (s *SaveBids) SetProfileId(val OptNilString)

SetProfileId sets the value of ProfileId.

func (*SaveBids) SetTimestamp

func (s *SaveBids) SetTimestamp(val OptDateTime)

SetTimestamp sets the value of Timestamp.

func (*SaveBids) UnmarshalJSON

func (s *SaveBids) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SaveBids) Validate

func (s *SaveBids) Validate() error

type Server

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

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type SkyblockAuctionsGetOKApplicationJSON

type SkyblockAuctionsGetOKApplicationJSON string

func (*SkyblockAuctionsGetOKApplicationJSON) Decode

Decode decodes SkyblockAuctionsGetOKApplicationJSON from json.

func (SkyblockAuctionsGetOKApplicationJSON) Encode

Encode encodes SkyblockAuctionsGetOKApplicationJSON as json.

func (SkyblockAuctionsGetOKApplicationJSON) MarshalJSON

func (s SkyblockAuctionsGetOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SkyblockAuctionsGetOKApplicationJSON) UnmarshalJSON

func (s *SkyblockAuctionsGetOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SkyblockAuctionsGetOKTextJSON

type SkyblockAuctionsGetOKTextJSON struct {
	Data io.Reader
}

func (SkyblockAuctionsGetOKTextJSON) Read

func (s SkyblockAuctionsGetOKTextJSON) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type SkyblockAuctionsGetOKTextPlain

type SkyblockAuctionsGetOKTextPlain struct {
	Data io.Reader
}

func (SkyblockAuctionsGetOKTextPlain) Read

func (s SkyblockAuctionsGetOKTextPlain) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type SkyblockAuctionsGetRes

type SkyblockAuctionsGetRes interface {
	// contains filtered or unexported methods
}

type SkyblockAuctionsPostOKApplicationJSON

type SkyblockAuctionsPostOKApplicationJSON string

func (*SkyblockAuctionsPostOKApplicationJSON) Decode

Decode decodes SkyblockAuctionsPostOKApplicationJSON from json.

func (SkyblockAuctionsPostOKApplicationJSON) Encode

Encode encodes SkyblockAuctionsPostOKApplicationJSON as json.

func (SkyblockAuctionsPostOKApplicationJSON) MarshalJSON

func (s SkyblockAuctionsPostOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SkyblockAuctionsPostOKApplicationJSON) UnmarshalJSON

func (s *SkyblockAuctionsPostOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SkyblockAuctionsPostOKTextJSON

type SkyblockAuctionsPostOKTextJSON struct {
	Data io.Reader
}

func (SkyblockAuctionsPostOKTextJSON) Read

func (s SkyblockAuctionsPostOKTextJSON) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type SkyblockAuctionsPostOKTextPlain

type SkyblockAuctionsPostOKTextPlain struct {
	Data io.Reader
}

func (SkyblockAuctionsPostOKTextPlain) Read

func (s SkyblockAuctionsPostOKTextPlain) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type SkyblockAuctionsPostRes

type SkyblockAuctionsPostRes interface {
	// contains filtered or unexported methods
}

type Tier

type Tier int32

Ref: #/components/schemas/Tier

const (
	Tier0 Tier = 0
	Tier1 Tier = 1
	Tier2 Tier = 2
	Tier3 Tier = 3
	Tier4 Tier = 4
	Tier5 Tier = 5
	Tier6 Tier = 6
	Tier7 Tier = 7
	Tier8 Tier = 8
	Tier9 Tier = 9
)

func (*Tier) Decode

func (s *Tier) Decode(d *jx.Decoder) error

Decode decodes Tier from json.

func (Tier) Encode

func (s Tier) Encode(e *jx.Encoder)

Encode encodes Tier as json.

func (Tier) MarshalJSON

func (s Tier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Tier) UnmarshalJSON

func (s *Tier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Tier) Validate

func (s Tier) Validate() error

type UUID

type UUID struct {
	ID    OptInt32     `json:"id"`
	Value OptNilString `json:"value"`
}

Ref: #/components/schemas/UuId

func (*UUID) Decode

func (s *UUID) Decode(d *jx.Decoder) error

Decode decodes UUID from json.

func (*UUID) Encode

func (s *UUID) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UUID) GetID

func (s *UUID) GetID() OptInt32

GetID returns the value of ID.

func (*UUID) GetValue

func (s *UUID) GetValue() OptNilString

GetValue returns the value of Value.

func (*UUID) MarshalJSON

func (s *UUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UUID) SetID

func (s *UUID) SetID(val OptInt32)

SetID sets the value of ID.

func (*UUID) SetValue

func (s *UUID) SetValue(val OptNilString)

SetValue sets the value of Value.

func (*UUID) UnmarshalJSON

func (s *UUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) APITimeGet

func (UnimplementedHandler) APITimeGet(ctx context.Context) (r time.Time, _ error)

APITimeGet implements GET /Api/time operation.

GET /Api/time

func (UnimplementedHandler) BaseAhPlayerIdPost

func (UnimplementedHandler) BaseAhPlayerIdPost(ctx context.Context, params BaseAhPlayerIdPostParams) error

BaseAhPlayerIdPost implements POST /Base/ah/{playerId} operation.

Request ah update for a player.

POST /Base/ah/{playerId}

func (UnimplementedHandler) BaseKeyPost

func (UnimplementedHandler) BaseKeyPost(ctx context.Context, req *KeyCreate) error

BaseKeyPost implements POST /Base/key operation.

POST /Base/key

func (UnimplementedHandler) BaseKeysPartyCountGet

func (UnimplementedHandler) BaseKeysPartyCountGet(ctx context.Context, params BaseKeysPartyCountGetParams) (r int32, _ error)

BaseKeysPartyCountGet implements GET /Base/keys/{party}/count operation.

GET /Base/keys/{party}/count

func (UnimplementedHandler) ProxyHypixelAhPlayerPlayerUuidGet

func (UnimplementedHandler) ProxyHypixelAhPlayerPlayerUuidGet(ctx context.Context, params ProxyHypixelAhPlayerPlayerUuidGetParams) (r []SaveAuction, _ error)

ProxyHypixelAhPlayerPlayerUuidGet implements GET /Proxy/hypixel/ah/player/{playerUuid} operation.

Load the auctions of a player.

GET /Proxy/hypixel/ah/player/{playerUuid}

func (UnimplementedHandler) ProxyHypixelGet

ProxyHypixelGet implements GET /Proxy/hypixel operation.

Proxy the path to hypixel using the assigned key (no key required).

GET /Proxy/hypixel

func (UnimplementedHandler) ProxyHypixelStatusGet

func (UnimplementedHandler) ProxyHypixelStatusGet(ctx context.Context) error

ProxyHypixelStatusGet implements GET /Proxy/hypixel/status operation.

Can proxy anything.

GET /Proxy/hypixel/status

func (UnimplementedHandler) SkyblockAuctionsGet

func (UnimplementedHandler) SkyblockAuctionsGet(ctx context.Context) (r SkyblockAuctionsGetRes, _ error)

SkyblockAuctionsGet implements GET /skyblock/auctions operation.

GET /skyblock/auctions

func (UnimplementedHandler) SkyblockAuctionsPost

func (UnimplementedHandler) SkyblockAuctionsPost(ctx context.Context) (r SkyblockAuctionsPostRes, _ error)

SkyblockAuctionsPost implements POST /skyblock/auctions operation.

POST /skyblock/auctions

Jump to

Keyboard shortcuts

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