Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type Client
- func (c *Client) CreatePet(ctx context.Context, request *CreatePetReq) (CreatePetRes, error)
- func (c *Client) CreatePetCategories(ctx context.Context, request *CreatePetCategoriesReq, ...) (CreatePetCategoriesRes, error)
- func (c *Client) CreatePetFriends(ctx context.Context, request *CreatePetFriendsReq, ...) (CreatePetFriendsRes, error)
- func (c *Client) CreatePetOwner(ctx context.Context, request *CreatePetOwnerReq, params CreatePetOwnerParams) (CreatePetOwnerRes, error)
- func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
- func (c *Client) DeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (DeletePetOwnerRes, error)
- func (c *Client) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
- func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
- func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
- func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
- func (c *Client) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
- func (c *Client) UpdatePet(ctx context.Context, request *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
- type ClientOption
- type CreatePetCategoriesParams
- type CreatePetCategoriesReq
- func (s *CreatePetCategoriesReq) Decode(d *jx.Decoder) error
- func (s *CreatePetCategoriesReq) Encode(e *jx.Encoder)
- func (s *CreatePetCategoriesReq) GetName() string
- func (s *CreatePetCategoriesReq) GetPets() []int
- func (s *CreatePetCategoriesReq) MarshalJSON() ([]byte, error)
- func (s *CreatePetCategoriesReq) SetFake()
- func (s *CreatePetCategoriesReq) SetName(val string)
- func (s *CreatePetCategoriesReq) SetPets(val []int)
- func (s *CreatePetCategoriesReq) UnmarshalJSON(data []byte) error
- type CreatePetCategoriesRes
- type CreatePetFriendsParams
- type CreatePetFriendsReq
- func (s *CreatePetFriendsReq) Decode(d *jx.Decoder) error
- func (s *CreatePetFriendsReq) Encode(e *jx.Encoder)
- func (s *CreatePetFriendsReq) GetBirthday() OptDateTime
- func (s *CreatePetFriendsReq) GetCategories() []int
- func (s *CreatePetFriendsReq) GetFriends() []int
- func (s *CreatePetFriendsReq) GetName() string
- func (s *CreatePetFriendsReq) GetOwner() int
- func (s *CreatePetFriendsReq) GetWeight() OptInt
- func (s *CreatePetFriendsReq) MarshalJSON() ([]byte, error)
- func (s *CreatePetFriendsReq) SetBirthday(val OptDateTime)
- func (s *CreatePetFriendsReq) SetCategories(val []int)
- func (s *CreatePetFriendsReq) SetFake()
- func (s *CreatePetFriendsReq) SetFriends(val []int)
- func (s *CreatePetFriendsReq) SetName(val string)
- func (s *CreatePetFriendsReq) SetOwner(val int)
- func (s *CreatePetFriendsReq) SetWeight(val OptInt)
- func (s *CreatePetFriendsReq) UnmarshalJSON(data []byte) error
- type CreatePetFriendsRes
- type CreatePetOwnerParams
- type CreatePetOwnerReq
- func (s *CreatePetOwnerReq) Decode(d *jx.Decoder) error
- func (s *CreatePetOwnerReq) Encode(e *jx.Encoder)
- func (s *CreatePetOwnerReq) GetAge() int
- func (s *CreatePetOwnerReq) GetName() string
- func (s *CreatePetOwnerReq) GetPets() []int
- func (s *CreatePetOwnerReq) MarshalJSON() ([]byte, error)
- func (s *CreatePetOwnerReq) SetAge(val int)
- func (s *CreatePetOwnerReq) SetFake()
- func (s *CreatePetOwnerReq) SetName(val string)
- func (s *CreatePetOwnerReq) SetPets(val []int)
- func (s *CreatePetOwnerReq) UnmarshalJSON(data []byte) error
- type CreatePetOwnerRes
- type CreatePetReq
- func (s *CreatePetReq) Decode(d *jx.Decoder) error
- func (s *CreatePetReq) Encode(e *jx.Encoder)
- func (s *CreatePetReq) GetBirthday() OptDateTime
- func (s *CreatePetReq) GetCategories() []int
- func (s *CreatePetReq) GetFriends() []int
- func (s *CreatePetReq) GetName() string
- func (s *CreatePetReq) GetOwner() int
- func (s *CreatePetReq) GetWeight() OptInt
- func (s *CreatePetReq) MarshalJSON() ([]byte, error)
- func (s *CreatePetReq) SetBirthday(val OptDateTime)
- func (s *CreatePetReq) SetCategories(val []int)
- func (s *CreatePetReq) SetFake()
- func (s *CreatePetReq) SetFriends(val []int)
- func (s *CreatePetReq) SetName(val string)
- func (s *CreatePetReq) SetOwner(val int)
- func (s *CreatePetReq) SetWeight(val OptInt)
- func (s *CreatePetReq) UnmarshalJSON(data []byte) error
- type CreatePetRes
- type DeletePetNoContent
- type DeletePetOwnerNoContent
- type DeletePetOwnerParams
- type DeletePetOwnerRes
- type DeletePetParams
- type DeletePetRes
- type ErrorHandler
- type Handler
- type Invoker
- type ListPetCategoriesOKApplicationJSON
- func (s *ListPetCategoriesOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetCategoriesOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetCategoriesOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetCategoriesOKApplicationJSON) SetFake()
- func (s *ListPetCategoriesOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetCategoriesOKApplicationJSON) Validate() error
- type ListPetCategoriesParams
- type ListPetCategoriesRes
- type ListPetFriendsOKApplicationJSON
- func (s *ListPetFriendsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetFriendsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetFriendsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetFriendsOKApplicationJSON) SetFake()
- func (s *ListPetFriendsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetFriendsOKApplicationJSON) Validate() error
- type ListPetFriendsParams
- type ListPetFriendsRes
- type ListPetOKApplicationJSON
- func (s *ListPetOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListPetOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListPetOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListPetOKApplicationJSON) SetFake()
- func (s *ListPetOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListPetOKApplicationJSON) Validate() error
- type ListPetParams
- type ListPetRes
- type Middleware
- type OptDateTime
- func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error
- func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))
- func (o OptDateTime) Get() (v time.Time, ok bool)
- func (o OptDateTime) IsSet() bool
- func (s OptDateTime) MarshalJSON() ([]byte, error)
- func (o OptDateTime) Or(d time.Time) time.Time
- func (o *OptDateTime) Reset()
- func (s *OptDateTime) SetFake()
- func (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (s *OptInt) SetFake()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptInt32
- type Option
- type PetCategoriesCreate
- func (s *PetCategoriesCreate) Decode(d *jx.Decoder) error
- func (s *PetCategoriesCreate) Encode(e *jx.Encoder)
- func (s *PetCategoriesCreate) GetID() int
- func (s *PetCategoriesCreate) GetName() string
- func (s *PetCategoriesCreate) MarshalJSON() ([]byte, error)
- func (s *PetCategoriesCreate) SetFake()
- func (s *PetCategoriesCreate) SetID(val int)
- func (s *PetCategoriesCreate) SetName(val string)
- func (s *PetCategoriesCreate) UnmarshalJSON(data []byte) error
- type PetCategoriesList
- func (s *PetCategoriesList) Decode(d *jx.Decoder) error
- func (s *PetCategoriesList) Encode(e *jx.Encoder)
- func (s *PetCategoriesList) GetID() int
- func (s *PetCategoriesList) GetName() string
- func (s *PetCategoriesList) MarshalJSON() ([]byte, error)
- func (s *PetCategoriesList) SetFake()
- func (s *PetCategoriesList) SetID(val int)
- func (s *PetCategoriesList) SetName(val string)
- func (s *PetCategoriesList) UnmarshalJSON(data []byte) error
- type PetCreate
- func (s *PetCreate) Decode(d *jx.Decoder) error
- func (s *PetCreate) Encode(e *jx.Encoder)
- func (s *PetCreate) GetBirthday() OptDateTime
- func (s *PetCreate) GetCategories() []PetCreateCategories
- func (s *PetCreate) GetID() int
- func (s *PetCreate) GetName() string
- func (s *PetCreate) GetOwner() PetCreateOwner
- func (s *PetCreate) GetWeight() OptInt
- func (s *PetCreate) MarshalJSON() ([]byte, error)
- func (s *PetCreate) SetBirthday(val OptDateTime)
- func (s *PetCreate) SetCategories(val []PetCreateCategories)
- func (s *PetCreate) SetFake()
- func (s *PetCreate) SetID(val int)
- func (s *PetCreate) SetName(val string)
- func (s *PetCreate) SetOwner(val PetCreateOwner)
- func (s *PetCreate) SetWeight(val OptInt)
- func (s *PetCreate) UnmarshalJSON(data []byte) error
- type PetCreateCategories
- func (s *PetCreateCategories) Decode(d *jx.Decoder) error
- func (s *PetCreateCategories) Encode(e *jx.Encoder)
- func (s *PetCreateCategories) GetID() int
- func (s *PetCreateCategories) GetName() string
- func (s *PetCreateCategories) MarshalJSON() ([]byte, error)
- func (s *PetCreateCategories) SetFake()
- func (s *PetCreateCategories) SetID(val int)
- func (s *PetCreateCategories) SetName(val string)
- func (s *PetCreateCategories) UnmarshalJSON(data []byte) error
- type PetCreateOwner
- func (s *PetCreateOwner) Decode(d *jx.Decoder) error
- func (s *PetCreateOwner) Encode(e *jx.Encoder)
- func (s *PetCreateOwner) GetAge() int
- func (s *PetCreateOwner) GetID() int
- func (s *PetCreateOwner) GetName() string
- func (s *PetCreateOwner) MarshalJSON() ([]byte, error)
- func (s *PetCreateOwner) SetAge(val int)
- func (s *PetCreateOwner) SetFake()
- func (s *PetCreateOwner) SetID(val int)
- func (s *PetCreateOwner) SetName(val string)
- func (s *PetCreateOwner) UnmarshalJSON(data []byte) error
- type PetFriendsCreate
- func (s *PetFriendsCreate) Decode(d *jx.Decoder) error
- func (s *PetFriendsCreate) Encode(e *jx.Encoder)
- func (s *PetFriendsCreate) GetBirthday() OptDateTime
- func (s *PetFriendsCreate) GetID() int
- func (s *PetFriendsCreate) GetName() string
- func (s *PetFriendsCreate) GetWeight() OptInt
- func (s *PetFriendsCreate) MarshalJSON() ([]byte, error)
- func (s *PetFriendsCreate) SetBirthday(val OptDateTime)
- func (s *PetFriendsCreate) SetFake()
- func (s *PetFriendsCreate) SetID(val int)
- func (s *PetFriendsCreate) SetName(val string)
- func (s *PetFriendsCreate) SetWeight(val OptInt)
- func (s *PetFriendsCreate) UnmarshalJSON(data []byte) error
- type PetFriendsList
- func (s *PetFriendsList) Decode(d *jx.Decoder) error
- func (s *PetFriendsList) Encode(e *jx.Encoder)
- func (s *PetFriendsList) GetBirthday() OptDateTime
- func (s *PetFriendsList) GetID() int
- func (s *PetFriendsList) GetName() string
- func (s *PetFriendsList) GetWeight() OptInt
- func (s *PetFriendsList) MarshalJSON() ([]byte, error)
- func (s *PetFriendsList) SetBirthday(val OptDateTime)
- func (s *PetFriendsList) SetFake()
- func (s *PetFriendsList) SetID(val int)
- func (s *PetFriendsList) SetName(val string)
- func (s *PetFriendsList) SetWeight(val OptInt)
- func (s *PetFriendsList) UnmarshalJSON(data []byte) error
- type PetList
- func (s *PetList) Decode(d *jx.Decoder) error
- func (s *PetList) Encode(e *jx.Encoder)
- func (s *PetList) GetBirthday() OptDateTime
- func (s *PetList) GetID() int
- func (s *PetList) GetName() string
- func (s *PetList) GetWeight() OptInt
- func (s *PetList) MarshalJSON() ([]byte, error)
- func (s *PetList) SetBirthday(val OptDateTime)
- func (s *PetList) SetFake()
- func (s *PetList) SetID(val int)
- func (s *PetList) SetName(val string)
- func (s *PetList) SetWeight(val OptInt)
- func (s *PetList) UnmarshalJSON(data []byte) error
- type PetOwnerCreate
- func (s *PetOwnerCreate) Decode(d *jx.Decoder) error
- func (s *PetOwnerCreate) Encode(e *jx.Encoder)
- func (s *PetOwnerCreate) GetAge() int
- func (s *PetOwnerCreate) GetID() int
- func (s *PetOwnerCreate) GetName() string
- func (s *PetOwnerCreate) MarshalJSON() ([]byte, error)
- func (s *PetOwnerCreate) SetAge(val int)
- func (s *PetOwnerCreate) SetFake()
- func (s *PetOwnerCreate) SetID(val int)
- func (s *PetOwnerCreate) SetName(val string)
- func (s *PetOwnerCreate) UnmarshalJSON(data []byte) error
- type PetOwnerRead
- func (s *PetOwnerRead) Decode(d *jx.Decoder) error
- func (s *PetOwnerRead) Encode(e *jx.Encoder)
- func (s *PetOwnerRead) GetAge() int
- func (s *PetOwnerRead) GetID() int
- func (s *PetOwnerRead) GetName() string
- func (s *PetOwnerRead) MarshalJSON() ([]byte, error)
- func (s *PetOwnerRead) SetAge(val int)
- func (s *PetOwnerRead) SetFake()
- func (s *PetOwnerRead) SetID(val int)
- func (s *PetOwnerRead) SetName(val string)
- func (s *PetOwnerRead) UnmarshalJSON(data []byte) error
- type PetRead
- func (s *PetRead) Decode(d *jx.Decoder) error
- func (s *PetRead) Encode(e *jx.Encoder)
- func (s *PetRead) GetBirthday() OptDateTime
- func (s *PetRead) GetID() int
- func (s *PetRead) GetName() string
- func (s *PetRead) GetWeight() OptInt
- func (s *PetRead) MarshalJSON() ([]byte, error)
- func (s *PetRead) SetBirthday(val OptDateTime)
- func (s *PetRead) SetFake()
- func (s *PetRead) SetID(val int)
- func (s *PetRead) SetName(val string)
- func (s *PetRead) SetWeight(val OptInt)
- func (s *PetRead) UnmarshalJSON(data []byte) error
- type PetUpdate
- func (s *PetUpdate) Decode(d *jx.Decoder) error
- func (s *PetUpdate) Encode(e *jx.Encoder)
- func (s *PetUpdate) GetBirthday() OptDateTime
- func (s *PetUpdate) GetID() int
- func (s *PetUpdate) GetName() string
- func (s *PetUpdate) GetWeight() OptInt
- func (s *PetUpdate) MarshalJSON() ([]byte, error)
- func (s *PetUpdate) SetBirthday(val OptDateTime)
- func (s *PetUpdate) SetFake()
- func (s *PetUpdate) SetID(val int)
- func (s *PetUpdate) SetName(val string)
- func (s *PetUpdate) SetWeight(val OptInt)
- func (s *PetUpdate) UnmarshalJSON(data []byte) error
- type R400
- func (s *R400) Decode(d *jx.Decoder) error
- func (s *R400) Encode(e *jx.Encoder)
- func (s *R400) GetCode() int
- func (s *R400) GetStatus() string
- func (s *R400) MarshalJSON() ([]byte, error)
- func (s *R400) SetCode(val int)
- func (s *R400) SetFake()
- func (s *R400) SetStatus(val string)
- func (s *R400) UnmarshalJSON(data []byte) error
- type R404
- func (s *R404) Decode(d *jx.Decoder) error
- func (s *R404) Encode(e *jx.Encoder)
- func (s *R404) GetCode() int
- func (s *R404) GetStatus() string
- func (s *R404) MarshalJSON() ([]byte, error)
- func (s *R404) SetCode(val int)
- func (s *R404) SetFake()
- func (s *R404) SetStatus(val string)
- func (s *R404) UnmarshalJSON(data []byte) error
- type R409
- func (s *R409) Decode(d *jx.Decoder) error
- func (s *R409) Encode(e *jx.Encoder)
- func (s *R409) GetCode() int
- func (s *R409) GetStatus() string
- func (s *R409) MarshalJSON() ([]byte, error)
- func (s *R409) SetCode(val int)
- func (s *R409) SetFake()
- func (s *R409) SetStatus(val string)
- func (s *R409) UnmarshalJSON(data []byte) error
- type R500
- func (s *R500) Decode(d *jx.Decoder) error
- func (s *R500) Encode(e *jx.Encoder)
- func (s *R500) GetCode() int
- func (s *R500) GetStatus() string
- func (s *R500) MarshalJSON() ([]byte, error)
- func (s *R500) SetCode(val int)
- func (s *R500) SetFake()
- func (s *R500) SetStatus(val string)
- func (s *R500) UnmarshalJSON(data []byte) error
- type ReadPetOwnerParams
- type ReadPetOwnerRes
- type ReadPetParams
- type ReadPetRes
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type UnimplementedHandler
- func (UnimplementedHandler) CreatePet(ctx context.Context, req *CreatePetReq) (r CreatePetRes, _ error)
- func (UnimplementedHandler) CreatePetCategories(ctx context.Context, req *CreatePetCategoriesReq, ...) (r CreatePetCategoriesRes, _ error)
- func (UnimplementedHandler) CreatePetFriends(ctx context.Context, req *CreatePetFriendsReq, params CreatePetFriendsParams) (r CreatePetFriendsRes, _ error)
- func (UnimplementedHandler) CreatePetOwner(ctx context.Context, req *CreatePetOwnerReq, params CreatePetOwnerParams) (r CreatePetOwnerRes, _ error)
- func (UnimplementedHandler) DeletePet(ctx context.Context, params DeletePetParams) (r DeletePetRes, _ error)
- func (UnimplementedHandler) DeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (r DeletePetOwnerRes, _ error)
- func (UnimplementedHandler) ListPet(ctx context.Context, params ListPetParams) (r ListPetRes, _ error)
- func (UnimplementedHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (r ListPetCategoriesRes, _ error)
- func (UnimplementedHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (r ListPetFriendsRes, _ error)
- func (UnimplementedHandler) ReadPet(ctx context.Context, params ReadPetParams) (r ReadPetRes, _ error)
- func (UnimplementedHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (r ReadPetOwnerRes, _ error)
- func (UnimplementedHandler) UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (r UpdatePetRes, _ error)
- type UpdatePetParams
- type UpdatePetReq
- func (s *UpdatePetReq) Decode(d *jx.Decoder) error
- func (s *UpdatePetReq) Encode(e *jx.Encoder)
- func (s *UpdatePetReq) GetBirthday() OptDateTime
- func (s *UpdatePetReq) GetCategories() []int
- func (s *UpdatePetReq) GetFriends() []int
- func (s *UpdatePetReq) GetName() string
- func (s *UpdatePetReq) GetOwner() int
- func (s *UpdatePetReq) GetWeight() OptInt
- func (s *UpdatePetReq) MarshalJSON() ([]byte, error)
- func (s *UpdatePetReq) SetBirthday(val OptDateTime)
- func (s *UpdatePetReq) SetCategories(val []int)
- func (s *UpdatePetReq) SetFake()
- func (s *UpdatePetReq) SetFriends(val []int)
- func (s *UpdatePetReq) SetName(val string)
- func (s *UpdatePetReq) SetOwner(val int)
- func (s *UpdatePetReq) SetWeight(val OptInt)
- func (s *UpdatePetReq) UnmarshalJSON(data []byte) error
- type UpdatePetRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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) CreatePet ¶
func (c *Client) CreatePet(ctx context.Context, request *CreatePetReq) (CreatePetRes, error)
CreatePet invokes createPet operation.
Creates a new Pet and persists it to storage.
POST /pets
func (*Client) CreatePetCategories ¶
func (c *Client) CreatePetCategories(ctx context.Context, request *CreatePetCategoriesReq, params CreatePetCategoriesParams) (CreatePetCategoriesRes, error)
CreatePetCategories invokes createPetCategories operation.
Creates a new Category and attaches it to the Pet.
POST /pets/{id}/categories
func (*Client) CreatePetFriends ¶
func (c *Client) CreatePetFriends(ctx context.Context, request *CreatePetFriendsReq, params CreatePetFriendsParams) (CreatePetFriendsRes, error)
CreatePetFriends invokes createPetFriends operation.
Creates a new Pet and attaches it to the Pet.
POST /pets/{id}/friends
func (*Client) CreatePetOwner ¶
func (c *Client) CreatePetOwner(ctx context.Context, request *CreatePetOwnerReq, params CreatePetOwnerParams) (CreatePetOwnerRes, error)
CreatePetOwner invokes createPetOwner operation.
Creates a new User and attaches it to the Pet.
POST /pets/{id}/owner
func (*Client) DeletePet ¶
func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
DeletePet invokes deletePet operation.
Deletes the Pet with the requested ID.
DELETE /pets/{id}
func (*Client) DeletePetOwner ¶
func (c *Client) DeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (DeletePetOwnerRes, error)
DeletePetOwner invokes deletePetOwner operation.
Delete the attached Owner of the Pet with the given ID.
DELETE /pets/{id}/owner
func (*Client) ListPet ¶
func (c *Client) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
ListPet invokes listPet operation.
List Pets.
GET /pets
func (*Client) ListPetCategories ¶
func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
ListPetCategories invokes listPetCategories operation.
List attached Categories.
GET /pets/{id}/categories
func (*Client) ListPetFriends ¶
func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
ListPetFriends invokes listPetFriends operation.
List attached Friends.
GET /pets/{id}/friends
func (*Client) ReadPet ¶
func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
ReadPet invokes readPet operation.
Finds the Pet with the requested ID and returns it.
GET /pets/{id}
func (*Client) ReadPetOwner ¶
func (c *Client) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
ReadPetOwner invokes readPetOwner operation.
Find the attached User of the Pet with the given ID.
GET /pets/{id}/owner
func (*Client) UpdatePet ¶
func (c *Client) UpdatePet(ctx context.Context, request *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
UpdatePet invokes updatePet operation.
Updates a Pet and persists changes to storage.
PATCH /pets/{id}
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 CreatePetCategoriesParams ¶
type CreatePetCategoriesParams struct { // ID of the Pet. ID int }
CreatePetCategoriesParams is parameters of createPetCategories operation.
type CreatePetCategoriesReq ¶
func (*CreatePetCategoriesReq) Decode ¶
func (s *CreatePetCategoriesReq) Decode(d *jx.Decoder) error
Decode decodes CreatePetCategoriesReq from json.
func (*CreatePetCategoriesReq) Encode ¶
func (s *CreatePetCategoriesReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatePetCategoriesReq) GetName ¶
func (s *CreatePetCategoriesReq) GetName() string
GetName returns the value of Name.
func (*CreatePetCategoriesReq) GetPets ¶
func (s *CreatePetCategoriesReq) GetPets() []int
GetPets returns the value of Pets.
func (*CreatePetCategoriesReq) MarshalJSON ¶
func (s *CreatePetCategoriesReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatePetCategoriesReq) SetFake ¶
func (s *CreatePetCategoriesReq) SetFake()
SetFake set fake values.
func (*CreatePetCategoriesReq) SetName ¶
func (s *CreatePetCategoriesReq) SetName(val string)
SetName sets the value of Name.
func (*CreatePetCategoriesReq) SetPets ¶
func (s *CreatePetCategoriesReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*CreatePetCategoriesReq) UnmarshalJSON ¶
func (s *CreatePetCategoriesReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreatePetCategoriesRes ¶
type CreatePetCategoriesRes interface {
// contains filtered or unexported methods
}
type CreatePetFriendsParams ¶
type CreatePetFriendsParams struct { // ID of the Pet. ID int }
CreatePetFriendsParams is parameters of createPetFriends operation.
type CreatePetFriendsReq ¶
type CreatePetFriendsReq struct { Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` Categories []int `json:"categories"` Owner int `json:"owner"` Friends []int `json:"friends"` }
func (*CreatePetFriendsReq) Decode ¶
func (s *CreatePetFriendsReq) Decode(d *jx.Decoder) error
Decode decodes CreatePetFriendsReq from json.
func (*CreatePetFriendsReq) Encode ¶
func (s *CreatePetFriendsReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatePetFriendsReq) GetBirthday ¶
func (s *CreatePetFriendsReq) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*CreatePetFriendsReq) GetCategories ¶
func (s *CreatePetFriendsReq) GetCategories() []int
GetCategories returns the value of Categories.
func (*CreatePetFriendsReq) GetFriends ¶
func (s *CreatePetFriendsReq) GetFriends() []int
GetFriends returns the value of Friends.
func (*CreatePetFriendsReq) GetName ¶
func (s *CreatePetFriendsReq) GetName() string
GetName returns the value of Name.
func (*CreatePetFriendsReq) GetOwner ¶
func (s *CreatePetFriendsReq) GetOwner() int
GetOwner returns the value of Owner.
func (*CreatePetFriendsReq) GetWeight ¶
func (s *CreatePetFriendsReq) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*CreatePetFriendsReq) MarshalJSON ¶
func (s *CreatePetFriendsReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatePetFriendsReq) SetBirthday ¶
func (s *CreatePetFriendsReq) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*CreatePetFriendsReq) SetCategories ¶
func (s *CreatePetFriendsReq) SetCategories(val []int)
SetCategories sets the value of Categories.
func (*CreatePetFriendsReq) SetFake ¶
func (s *CreatePetFriendsReq) SetFake()
SetFake set fake values.
func (*CreatePetFriendsReq) SetFriends ¶
func (s *CreatePetFriendsReq) SetFriends(val []int)
SetFriends sets the value of Friends.
func (*CreatePetFriendsReq) SetName ¶
func (s *CreatePetFriendsReq) SetName(val string)
SetName sets the value of Name.
func (*CreatePetFriendsReq) SetOwner ¶
func (s *CreatePetFriendsReq) SetOwner(val int)
SetOwner sets the value of Owner.
func (*CreatePetFriendsReq) SetWeight ¶
func (s *CreatePetFriendsReq) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*CreatePetFriendsReq) UnmarshalJSON ¶
func (s *CreatePetFriendsReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreatePetFriendsRes ¶
type CreatePetFriendsRes interface {
// contains filtered or unexported methods
}
type CreatePetOwnerParams ¶
type CreatePetOwnerParams struct { // ID of the Pet. ID int }
CreatePetOwnerParams is parameters of createPetOwner operation.
type CreatePetOwnerReq ¶
type CreatePetOwnerReq struct { Name string `json:"name"` Age int `json:"age"` Pets []int `json:"pets"` }
func (*CreatePetOwnerReq) Decode ¶
func (s *CreatePetOwnerReq) Decode(d *jx.Decoder) error
Decode decodes CreatePetOwnerReq from json.
func (*CreatePetOwnerReq) Encode ¶
func (s *CreatePetOwnerReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatePetOwnerReq) GetAge ¶
func (s *CreatePetOwnerReq) GetAge() int
GetAge returns the value of Age.
func (*CreatePetOwnerReq) GetName ¶
func (s *CreatePetOwnerReq) GetName() string
GetName returns the value of Name.
func (*CreatePetOwnerReq) GetPets ¶
func (s *CreatePetOwnerReq) GetPets() []int
GetPets returns the value of Pets.
func (*CreatePetOwnerReq) MarshalJSON ¶
func (s *CreatePetOwnerReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatePetOwnerReq) SetAge ¶
func (s *CreatePetOwnerReq) SetAge(val int)
SetAge sets the value of Age.
func (*CreatePetOwnerReq) SetName ¶
func (s *CreatePetOwnerReq) SetName(val string)
SetName sets the value of Name.
func (*CreatePetOwnerReq) SetPets ¶
func (s *CreatePetOwnerReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*CreatePetOwnerReq) UnmarshalJSON ¶
func (s *CreatePetOwnerReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreatePetOwnerRes ¶
type CreatePetOwnerRes interface {
// contains filtered or unexported methods
}
type CreatePetReq ¶
type CreatePetReq struct { Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` Categories []int `json:"categories"` Owner int `json:"owner"` Friends []int `json:"friends"` }
func (*CreatePetReq) Decode ¶
func (s *CreatePetReq) Decode(d *jx.Decoder) error
Decode decodes CreatePetReq from json.
func (*CreatePetReq) Encode ¶
func (s *CreatePetReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatePetReq) GetBirthday ¶
func (s *CreatePetReq) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*CreatePetReq) GetCategories ¶
func (s *CreatePetReq) GetCategories() []int
GetCategories returns the value of Categories.
func (*CreatePetReq) GetFriends ¶
func (s *CreatePetReq) GetFriends() []int
GetFriends returns the value of Friends.
func (*CreatePetReq) GetName ¶
func (s *CreatePetReq) GetName() string
GetName returns the value of Name.
func (*CreatePetReq) GetOwner ¶
func (s *CreatePetReq) GetOwner() int
GetOwner returns the value of Owner.
func (*CreatePetReq) GetWeight ¶
func (s *CreatePetReq) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*CreatePetReq) MarshalJSON ¶
func (s *CreatePetReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatePetReq) SetBirthday ¶
func (s *CreatePetReq) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*CreatePetReq) SetCategories ¶
func (s *CreatePetReq) SetCategories(val []int)
SetCategories sets the value of Categories.
func (*CreatePetReq) SetFriends ¶
func (s *CreatePetReq) SetFriends(val []int)
SetFriends sets the value of Friends.
func (*CreatePetReq) SetName ¶
func (s *CreatePetReq) SetName(val string)
SetName sets the value of Name.
func (*CreatePetReq) SetOwner ¶
func (s *CreatePetReq) SetOwner(val int)
SetOwner sets the value of Owner.
func (*CreatePetReq) SetWeight ¶
func (s *CreatePetReq) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*CreatePetReq) UnmarshalJSON ¶
func (s *CreatePetReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreatePetRes ¶
type CreatePetRes interface {
// contains filtered or unexported methods
}
type DeletePetNoContent ¶
type DeletePetNoContent struct{}
DeletePetNoContent is response for DeletePet operation.
type DeletePetOwnerNoContent ¶
type DeletePetOwnerNoContent struct{}
DeletePetOwnerNoContent is response for DeletePetOwner operation.
type DeletePetOwnerParams ¶
type DeletePetOwnerParams struct { // ID of the Pet. ID int }
DeletePetOwnerParams is parameters of deletePetOwner operation.
type DeletePetOwnerRes ¶
type DeletePetOwnerRes interface {
// contains filtered or unexported methods
}
type DeletePetParams ¶
type DeletePetParams struct { // ID of the Pet. ID int }
DeletePetParams is parameters of deletePet operation.
type DeletePetRes ¶
type DeletePetRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface { // CreatePet implements createPet operation. // // Creates a new Pet and persists it to storage. // // POST /pets CreatePet(ctx context.Context, req *CreatePetReq) (CreatePetRes, error) // CreatePetCategories implements createPetCategories operation. // // Creates a new Category and attaches it to the Pet. // // POST /pets/{id}/categories CreatePetCategories(ctx context.Context, req *CreatePetCategoriesReq, params CreatePetCategoriesParams) (CreatePetCategoriesRes, error) // CreatePetFriends implements createPetFriends operation. // // Creates a new Pet and attaches it to the Pet. // // POST /pets/{id}/friends CreatePetFriends(ctx context.Context, req *CreatePetFriendsReq, params CreatePetFriendsParams) (CreatePetFriendsRes, error) // CreatePetOwner implements createPetOwner operation. // // Creates a new User and attaches it to the Pet. // // POST /pets/{id}/owner CreatePetOwner(ctx context.Context, req *CreatePetOwnerReq, params CreatePetOwnerParams) (CreatePetOwnerRes, error) // DeletePet implements deletePet operation. // // Deletes the Pet with the requested ID. // // DELETE /pets/{id} DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error) // DeletePetOwner implements deletePetOwner operation. // // Delete the attached Owner of the Pet with the given ID. // // DELETE /pets/{id}/owner DeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (DeletePetOwnerRes, error) // ListPet implements listPet operation. // // List Pets. // // GET /pets ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error) // ListPetCategories implements listPetCategories operation. // // List attached Categories. // // GET /pets/{id}/categories ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error) // ListPetFriends implements listPetFriends operation. // // List attached Friends. // // GET /pets/{id}/friends ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error) // ReadPet implements readPet operation. // // Finds the Pet with the requested ID and returns it. // // GET /pets/{id} ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error) // ReadPetOwner implements readPetOwner operation. // // Find the attached User of the Pet with the given ID. // // GET /pets/{id}/owner ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error) // UpdatePet implements updatePet operation. // // Updates a Pet and persists changes to storage. // // PATCH /pets/{id} UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error) }
Handler handles operations described by OpenAPI v3 specification.
type Invoker ¶
type Invoker interface { // CreatePet invokes createPet operation. // // Creates a new Pet and persists it to storage. // // POST /pets CreatePet(ctx context.Context, request *CreatePetReq) (CreatePetRes, error) // CreatePetCategories invokes createPetCategories operation. // // Creates a new Category and attaches it to the Pet. // // POST /pets/{id}/categories CreatePetCategories(ctx context.Context, request *CreatePetCategoriesReq, params CreatePetCategoriesParams) (CreatePetCategoriesRes, error) // CreatePetFriends invokes createPetFriends operation. // // Creates a new Pet and attaches it to the Pet. // // POST /pets/{id}/friends CreatePetFriends(ctx context.Context, request *CreatePetFriendsReq, params CreatePetFriendsParams) (CreatePetFriendsRes, error) // CreatePetOwner invokes createPetOwner operation. // // Creates a new User and attaches it to the Pet. // // POST /pets/{id}/owner CreatePetOwner(ctx context.Context, request *CreatePetOwnerReq, params CreatePetOwnerParams) (CreatePetOwnerRes, error) // DeletePet invokes deletePet operation. // // Deletes the Pet with the requested ID. // // DELETE /pets/{id} DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error) // DeletePetOwner invokes deletePetOwner operation. // // Delete the attached Owner of the Pet with the given ID. // // DELETE /pets/{id}/owner DeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (DeletePetOwnerRes, error) // ListPet invokes listPet operation. // // List Pets. // // GET /pets ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error) // ListPetCategories invokes listPetCategories operation. // // List attached Categories. // // GET /pets/{id}/categories ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error) // ListPetFriends invokes listPetFriends operation. // // List attached Friends. // // GET /pets/{id}/friends ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error) // ReadPet invokes readPet operation. // // Finds the Pet with the requested ID and returns it. // // GET /pets/{id} ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error) // ReadPetOwner invokes readPetOwner operation. // // Find the attached User of the Pet with the given ID. // // GET /pets/{id}/owner ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error) // UpdatePet invokes updatePet operation. // // Updates a Pet and persists changes to storage. // // PATCH /pets/{id} UpdatePet(ctx context.Context, request *UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type ListPetCategoriesOKApplicationJSON ¶
type ListPetCategoriesOKApplicationJSON []PetCategoriesList
func (*ListPetCategoriesOKApplicationJSON) Decode ¶
func (s *ListPetCategoriesOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetCategoriesOKApplicationJSON from json.
func (ListPetCategoriesOKApplicationJSON) Encode ¶
func (s ListPetCategoriesOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetCategoriesOKApplicationJSON as json.
func (ListPetCategoriesOKApplicationJSON) MarshalJSON ¶
func (s ListPetCategoriesOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetCategoriesOKApplicationJSON) SetFake ¶
func (s *ListPetCategoriesOKApplicationJSON) SetFake()
SetFake set fake values.
func (*ListPetCategoriesOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetCategoriesOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetCategoriesOKApplicationJSON) Validate ¶
func (s ListPetCategoriesOKApplicationJSON) Validate() error
type ListPetCategoriesParams ¶
type ListPetCategoriesParams struct { // ID of the Pet. ID int // What page to render. Page OptInt32 // Item count to render per page. ItemsPerPage OptInt32 }
ListPetCategoriesParams is parameters of listPetCategories operation.
type ListPetCategoriesRes ¶
type ListPetCategoriesRes interface {
// contains filtered or unexported methods
}
type ListPetFriendsOKApplicationJSON ¶
type ListPetFriendsOKApplicationJSON []PetFriendsList
func (*ListPetFriendsOKApplicationJSON) Decode ¶
func (s *ListPetFriendsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetFriendsOKApplicationJSON from json.
func (ListPetFriendsOKApplicationJSON) Encode ¶
func (s ListPetFriendsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetFriendsOKApplicationJSON as json.
func (ListPetFriendsOKApplicationJSON) MarshalJSON ¶
func (s ListPetFriendsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetFriendsOKApplicationJSON) SetFake ¶
func (s *ListPetFriendsOKApplicationJSON) SetFake()
SetFake set fake values.
func (*ListPetFriendsOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetFriendsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetFriendsOKApplicationJSON) Validate ¶
func (s ListPetFriendsOKApplicationJSON) Validate() error
type ListPetFriendsParams ¶
type ListPetFriendsParams struct { // ID of the Pet. ID int // What page to render. Page OptInt32 // Item count to render per page. ItemsPerPage OptInt32 }
ListPetFriendsParams is parameters of listPetFriends operation.
type ListPetFriendsRes ¶
type ListPetFriendsRes interface {
// contains filtered or unexported methods
}
type ListPetOKApplicationJSON ¶
type ListPetOKApplicationJSON []PetList
func (*ListPetOKApplicationJSON) Decode ¶
func (s *ListPetOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListPetOKApplicationJSON from json.
func (ListPetOKApplicationJSON) Encode ¶
func (s ListPetOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListPetOKApplicationJSON as json.
func (ListPetOKApplicationJSON) MarshalJSON ¶
func (s ListPetOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListPetOKApplicationJSON) SetFake ¶
func (s *ListPetOKApplicationJSON) SetFake()
SetFake set fake values.
func (*ListPetOKApplicationJSON) UnmarshalJSON ¶
func (s *ListPetOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetOKApplicationJSON) Validate ¶
func (s ListPetOKApplicationJSON) Validate() error
type ListPetParams ¶
type ListPetParams struct { // What page to render. Page OptInt32 // Item count to render per page. ItemsPerPage OptInt32 }
ListPetParams is parameters of listPet operation.
type ListPetRes ¶
type ListPetRes interface {
// contains filtered or unexported methods
}
type OptDateTime ¶
OptDateTime is optional time.Time.
func NewOptDateTime ¶
func NewOptDateTime(v time.Time) OptDateTime
NewOptDateTime returns new OptDateTime with value set to v.
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) UnmarshalJSON ¶
func (s *OptDateTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt32 ¶
OptInt32 is optional int32.
func NewOptInt32 ¶
NewOptInt32 returns new OptInt32 with value set to v.
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 otel.GetMeterProvider() 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 PetCategoriesCreate ¶
Ref: #/components/schemas/Pet_CategoriesCreate
func (*PetCategoriesCreate) Decode ¶
func (s *PetCategoriesCreate) Decode(d *jx.Decoder) error
Decode decodes PetCategoriesCreate from json.
func (*PetCategoriesCreate) Encode ¶
func (s *PetCategoriesCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCategoriesCreate) GetID ¶
func (s *PetCategoriesCreate) GetID() int
GetID returns the value of ID.
func (*PetCategoriesCreate) GetName ¶
func (s *PetCategoriesCreate) GetName() string
GetName returns the value of Name.
func (*PetCategoriesCreate) MarshalJSON ¶
func (s *PetCategoriesCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCategoriesCreate) SetFake ¶
func (s *PetCategoriesCreate) SetFake()
SetFake set fake values.
func (*PetCategoriesCreate) SetID ¶
func (s *PetCategoriesCreate) SetID(val int)
SetID sets the value of ID.
func (*PetCategoriesCreate) SetName ¶
func (s *PetCategoriesCreate) SetName(val string)
SetName sets the value of Name.
func (*PetCategoriesCreate) UnmarshalJSON ¶
func (s *PetCategoriesCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCategoriesList ¶
Ref: #/components/schemas/Pet_CategoriesList
func (*PetCategoriesList) Decode ¶
func (s *PetCategoriesList) Decode(d *jx.Decoder) error
Decode decodes PetCategoriesList from json.
func (*PetCategoriesList) Encode ¶
func (s *PetCategoriesList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCategoriesList) GetID ¶
func (s *PetCategoriesList) GetID() int
GetID returns the value of ID.
func (*PetCategoriesList) GetName ¶
func (s *PetCategoriesList) GetName() string
GetName returns the value of Name.
func (*PetCategoriesList) MarshalJSON ¶
func (s *PetCategoriesList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCategoriesList) SetID ¶
func (s *PetCategoriesList) SetID(val int)
SetID sets the value of ID.
func (*PetCategoriesList) SetName ¶
func (s *PetCategoriesList) SetName(val string)
SetName sets the value of Name.
func (*PetCategoriesList) UnmarshalJSON ¶
func (s *PetCategoriesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreate ¶
type PetCreate struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` Categories []PetCreateCategories `json:"categories"` Owner PetCreateOwner `json:"owner"` }
Ref: #/components/schemas/PetCreate
func (*PetCreate) GetBirthday ¶
func (s *PetCreate) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetCreate) GetCategories ¶
func (s *PetCreate) GetCategories() []PetCreateCategories
GetCategories returns the value of Categories.
func (*PetCreate) GetOwner ¶
func (s *PetCreate) GetOwner() PetCreateOwner
GetOwner returns the value of Owner.
func (*PetCreate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetCreate) SetBirthday ¶
func (s *PetCreate) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetCreate) SetCategories ¶
func (s *PetCreate) SetCategories(val []PetCreateCategories)
SetCategories sets the value of Categories.
func (*PetCreate) SetOwner ¶
func (s *PetCreate) SetOwner(val PetCreateOwner)
SetOwner sets the value of Owner.
func (*PetCreate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreateCategories ¶
Ref: #/components/schemas/PetCreate_Categories
func (*PetCreateCategories) Decode ¶
func (s *PetCreateCategories) Decode(d *jx.Decoder) error
Decode decodes PetCreateCategories from json.
func (*PetCreateCategories) Encode ¶
func (s *PetCreateCategories) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCreateCategories) GetID ¶
func (s *PetCreateCategories) GetID() int
GetID returns the value of ID.
func (*PetCreateCategories) GetName ¶
func (s *PetCreateCategories) GetName() string
GetName returns the value of Name.
func (*PetCreateCategories) MarshalJSON ¶
func (s *PetCreateCategories) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateCategories) SetFake ¶
func (s *PetCreateCategories) SetFake()
SetFake set fake values.
func (*PetCreateCategories) SetID ¶
func (s *PetCreateCategories) SetID(val int)
SetID sets the value of ID.
func (*PetCreateCategories) SetName ¶
func (s *PetCreateCategories) SetName(val string)
SetName sets the value of Name.
func (*PetCreateCategories) UnmarshalJSON ¶
func (s *PetCreateCategories) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreateOwner ¶
Ref: #/components/schemas/PetCreate_Owner
func (*PetCreateOwner) Decode ¶
func (s *PetCreateOwner) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwner from json.
func (*PetCreateOwner) Encode ¶
func (s *PetCreateOwner) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetCreateOwner) GetAge ¶
func (s *PetCreateOwner) GetAge() int
GetAge returns the value of Age.
func (*PetCreateOwner) GetName ¶
func (s *PetCreateOwner) GetName() string
GetName returns the value of Name.
func (*PetCreateOwner) MarshalJSON ¶
func (s *PetCreateOwner) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateOwner) SetAge ¶
func (s *PetCreateOwner) SetAge(val int)
SetAge sets the value of Age.
func (*PetCreateOwner) SetName ¶
func (s *PetCreateOwner) SetName(val string)
SetName sets the value of Name.
func (*PetCreateOwner) UnmarshalJSON ¶
func (s *PetCreateOwner) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetFriendsCreate ¶
type PetFriendsCreate struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` }
Ref: #/components/schemas/Pet_FriendsCreate
func (*PetFriendsCreate) Decode ¶
func (s *PetFriendsCreate) Decode(d *jx.Decoder) error
Decode decodes PetFriendsCreate from json.
func (*PetFriendsCreate) Encode ¶
func (s *PetFriendsCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetFriendsCreate) GetBirthday ¶
func (s *PetFriendsCreate) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetFriendsCreate) GetID ¶
func (s *PetFriendsCreate) GetID() int
GetID returns the value of ID.
func (*PetFriendsCreate) GetName ¶
func (s *PetFriendsCreate) GetName() string
GetName returns the value of Name.
func (*PetFriendsCreate) GetWeight ¶
func (s *PetFriendsCreate) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*PetFriendsCreate) MarshalJSON ¶
func (s *PetFriendsCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetFriendsCreate) SetBirthday ¶
func (s *PetFriendsCreate) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetFriendsCreate) SetID ¶
func (s *PetFriendsCreate) SetID(val int)
SetID sets the value of ID.
func (*PetFriendsCreate) SetName ¶
func (s *PetFriendsCreate) SetName(val string)
SetName sets the value of Name.
func (*PetFriendsCreate) SetWeight ¶
func (s *PetFriendsCreate) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*PetFriendsCreate) UnmarshalJSON ¶
func (s *PetFriendsCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetFriendsList ¶
type PetFriendsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` }
Ref: #/components/schemas/Pet_FriendsList
func (*PetFriendsList) Decode ¶
func (s *PetFriendsList) Decode(d *jx.Decoder) error
Decode decodes PetFriendsList from json.
func (*PetFriendsList) Encode ¶
func (s *PetFriendsList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetFriendsList) GetBirthday ¶
func (s *PetFriendsList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetFriendsList) GetName ¶
func (s *PetFriendsList) GetName() string
GetName returns the value of Name.
func (*PetFriendsList) GetWeight ¶
func (s *PetFriendsList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*PetFriendsList) MarshalJSON ¶
func (s *PetFriendsList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetFriendsList) SetBirthday ¶
func (s *PetFriendsList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetFriendsList) SetName ¶
func (s *PetFriendsList) SetName(val string)
SetName sets the value of Name.
func (*PetFriendsList) SetWeight ¶
func (s *PetFriendsList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*PetFriendsList) UnmarshalJSON ¶
func (s *PetFriendsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetList ¶
type PetList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` }
Ref: #/components/schemas/PetList
func (*PetList) GetBirthday ¶
func (s *PetList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetList) SetBirthday ¶
func (s *PetList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PetOwnerCreate ¶
Ref: #/components/schemas/Pet_OwnerCreate
func (*PetOwnerCreate) Decode ¶
func (s *PetOwnerCreate) Decode(d *jx.Decoder) error
Decode decodes PetOwnerCreate from json.
func (*PetOwnerCreate) Encode ¶
func (s *PetOwnerCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetOwnerCreate) GetAge ¶
func (s *PetOwnerCreate) GetAge() int
GetAge returns the value of Age.
func (*PetOwnerCreate) GetName ¶
func (s *PetOwnerCreate) GetName() string
GetName returns the value of Name.
func (*PetOwnerCreate) MarshalJSON ¶
func (s *PetOwnerCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetOwnerCreate) SetAge ¶
func (s *PetOwnerCreate) SetAge(val int)
SetAge sets the value of Age.
func (*PetOwnerCreate) SetName ¶
func (s *PetOwnerCreate) SetName(val string)
SetName sets the value of Name.
func (*PetOwnerCreate) UnmarshalJSON ¶
func (s *PetOwnerCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetOwnerRead ¶
Ref: #/components/schemas/Pet_OwnerRead
func (*PetOwnerRead) Decode ¶
func (s *PetOwnerRead) Decode(d *jx.Decoder) error
Decode decodes PetOwnerRead from json.
func (*PetOwnerRead) Encode ¶
func (s *PetOwnerRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PetOwnerRead) GetName ¶
func (s *PetOwnerRead) GetName() string
GetName returns the value of Name.
func (*PetOwnerRead) MarshalJSON ¶
func (s *PetOwnerRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetOwnerRead) SetName ¶
func (s *PetOwnerRead) SetName(val string)
SetName sets the value of Name.
func (*PetOwnerRead) UnmarshalJSON ¶
func (s *PetOwnerRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetRead ¶
type PetRead struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` }
Ref: #/components/schemas/PetRead
func (*PetRead) GetBirthday ¶
func (s *PetRead) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetRead) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetRead) SetBirthday ¶
func (s *PetRead) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetRead) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PetUpdate ¶
type PetUpdate struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` }
Ref: #/components/schemas/PetUpdate
func (*PetUpdate) GetBirthday ¶
func (s *PetUpdate) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*PetUpdate) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PetUpdate) SetBirthday ¶
func (s *PetUpdate) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*PetUpdate) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R400 ¶
func (*R400) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R400) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R404 ¶
func (*R404) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R404) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R409 ¶
func (*R409) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R409) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R500 ¶
func (*R500) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R500) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ReadPetOwnerParams ¶
type ReadPetOwnerParams struct { // ID of the Pet. ID int }
ReadPetOwnerParams is parameters of readPetOwner operation.
type ReadPetOwnerRes ¶
type ReadPetOwnerRes interface {
// contains filtered or unexported methods
}
type ReadPetParams ¶
type ReadPetParams struct { // ID of the Pet. ID int }
ReadPetParams is parameters of readPet operation.
type ReadPetRes ¶
type ReadPetRes interface {
// contains filtered or unexported methods
}
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
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.
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 UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) CreatePet ¶
func (UnimplementedHandler) CreatePet(ctx context.Context, req *CreatePetReq) (r CreatePetRes, _ error)
CreatePet implements createPet operation.
Creates a new Pet and persists it to storage.
POST /pets
func (UnimplementedHandler) CreatePetCategories ¶
func (UnimplementedHandler) CreatePetCategories(ctx context.Context, req *CreatePetCategoriesReq, params CreatePetCategoriesParams) (r CreatePetCategoriesRes, _ error)
CreatePetCategories implements createPetCategories operation.
Creates a new Category and attaches it to the Pet.
POST /pets/{id}/categories
func (UnimplementedHandler) CreatePetFriends ¶
func (UnimplementedHandler) CreatePetFriends(ctx context.Context, req *CreatePetFriendsReq, params CreatePetFriendsParams) (r CreatePetFriendsRes, _ error)
CreatePetFriends implements createPetFriends operation.
Creates a new Pet and attaches it to the Pet.
POST /pets/{id}/friends
func (UnimplementedHandler) CreatePetOwner ¶
func (UnimplementedHandler) CreatePetOwner(ctx context.Context, req *CreatePetOwnerReq, params CreatePetOwnerParams) (r CreatePetOwnerRes, _ error)
CreatePetOwner implements createPetOwner operation.
Creates a new User and attaches it to the Pet.
POST /pets/{id}/owner
func (UnimplementedHandler) DeletePet ¶
func (UnimplementedHandler) DeletePet(ctx context.Context, params DeletePetParams) (r DeletePetRes, _ error)
DeletePet implements deletePet operation.
Deletes the Pet with the requested ID.
DELETE /pets/{id}
func (UnimplementedHandler) DeletePetOwner ¶
func (UnimplementedHandler) DeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (r DeletePetOwnerRes, _ error)
DeletePetOwner implements deletePetOwner operation.
Delete the attached Owner of the Pet with the given ID.
DELETE /pets/{id}/owner
func (UnimplementedHandler) ListPet ¶
func (UnimplementedHandler) ListPet(ctx context.Context, params ListPetParams) (r ListPetRes, _ error)
ListPet implements listPet operation.
List Pets.
GET /pets
func (UnimplementedHandler) ListPetCategories ¶
func (UnimplementedHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (r ListPetCategoriesRes, _ error)
ListPetCategories implements listPetCategories operation.
List attached Categories.
GET /pets/{id}/categories
func (UnimplementedHandler) ListPetFriends ¶
func (UnimplementedHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (r ListPetFriendsRes, _ error)
ListPetFriends implements listPetFriends operation.
List attached Friends.
GET /pets/{id}/friends
func (UnimplementedHandler) ReadPet ¶
func (UnimplementedHandler) ReadPet(ctx context.Context, params ReadPetParams) (r ReadPetRes, _ error)
ReadPet implements readPet operation.
Finds the Pet with the requested ID and returns it.
GET /pets/{id}
func (UnimplementedHandler) ReadPetOwner ¶
func (UnimplementedHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (r ReadPetOwnerRes, _ error)
ReadPetOwner implements readPetOwner operation.
Find the attached User of the Pet with the given ID.
GET /pets/{id}/owner
func (UnimplementedHandler) UpdatePet ¶
func (UnimplementedHandler) UpdatePet(ctx context.Context, req *UpdatePetReq, params UpdatePetParams) (r UpdatePetRes, _ error)
UpdatePet implements updatePet operation.
Updates a Pet and persists changes to storage.
PATCH /pets/{id}
type UpdatePetParams ¶
type UpdatePetParams struct { // ID of the Pet. ID int }
UpdatePetParams is parameters of updatePet operation.
type UpdatePetReq ¶
type UpdatePetReq struct { Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` Categories []int `json:"categories"` Owner int `json:"owner"` Friends []int `json:"friends"` }
func (*UpdatePetReq) Decode ¶
func (s *UpdatePetReq) Decode(d *jx.Decoder) error
Decode decodes UpdatePetReq from json.
func (*UpdatePetReq) Encode ¶
func (s *UpdatePetReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UpdatePetReq) GetBirthday ¶
func (s *UpdatePetReq) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (*UpdatePetReq) GetCategories ¶
func (s *UpdatePetReq) GetCategories() []int
GetCategories returns the value of Categories.
func (*UpdatePetReq) GetFriends ¶
func (s *UpdatePetReq) GetFriends() []int
GetFriends returns the value of Friends.
func (*UpdatePetReq) GetName ¶
func (s *UpdatePetReq) GetName() string
GetName returns the value of Name.
func (*UpdatePetReq) GetOwner ¶
func (s *UpdatePetReq) GetOwner() int
GetOwner returns the value of Owner.
func (*UpdatePetReq) GetWeight ¶
func (s *UpdatePetReq) GetWeight() OptInt
GetWeight returns the value of Weight.
func (*UpdatePetReq) MarshalJSON ¶
func (s *UpdatePetReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdatePetReq) SetBirthday ¶
func (s *UpdatePetReq) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*UpdatePetReq) SetCategories ¶
func (s *UpdatePetReq) SetCategories(val []int)
SetCategories sets the value of Categories.
func (*UpdatePetReq) SetFriends ¶
func (s *UpdatePetReq) SetFriends(val []int)
SetFriends sets the value of Friends.
func (*UpdatePetReq) SetName ¶
func (s *UpdatePetReq) SetName(val string)
SetName sets the value of Name.
func (*UpdatePetReq) SetOwner ¶
func (s *UpdatePetReq) SetOwner(val int)
SetOwner sets the value of Owner.
func (*UpdatePetReq) SetWeight ¶
func (s *UpdatePetReq) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*UpdatePetReq) UnmarshalJSON ¶
func (s *UpdatePetReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdatePetRes ¶
type UpdatePetRes interface {
// contains filtered or unexported methods
}
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_faker_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go