Documentation ¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AllTypesCreate
- func (s *AllTypesCreate) Decode(d *jx.Decoder) error
- func (at *AllTypesCreate) Elem() AllTypesCreate
- func (s AllTypesCreate) Encode(e *jx.Encoder)
- func (s AllTypesCreate) GetBool() bool
- func (s AllTypesCreate) GetBytes() []byte
- func (s AllTypesCreate) GetFloat32() float32
- func (s AllTypesCreate) GetFloat64() float64
- func (s AllTypesCreate) GetID() int64
- func (s AllTypesCreate) GetInt() int
- func (s AllTypesCreate) GetInt16() int32
- func (s AllTypesCreate) GetInt32() int32
- func (s AllTypesCreate) GetInt64() int64
- func (s AllTypesCreate) GetInt8() int32
- func (s AllTypesCreate) GetState() AllTypesCreateState
- func (s AllTypesCreate) GetStringType() string
- func (s AllTypesCreate) GetText() string
- func (s AllTypesCreate) GetTime() time.Time
- func (s AllTypesCreate) GetUUID() uuid.UUID
- func (s AllTypesCreate) GetUint() int64
- func (s AllTypesCreate) GetUint16() int32
- func (s AllTypesCreate) GetUint32() int64
- func (s AllTypesCreate) GetUint64() int64
- func (s AllTypesCreate) GetUint8() int32
- func (s AllTypesCreate) MarshalJSON() ([]byte, error)
- func (s *AllTypesCreate) SetBool(val bool)
- func (s *AllTypesCreate) SetBytes(val []byte)
- func (s *AllTypesCreate) SetFloat32(val float32)
- func (s *AllTypesCreate) SetFloat64(val float64)
- func (s *AllTypesCreate) SetID(val int64)
- func (s *AllTypesCreate) SetInt(val int)
- func (s *AllTypesCreate) SetInt16(val int32)
- func (s *AllTypesCreate) SetInt32(val int32)
- func (s *AllTypesCreate) SetInt64(val int64)
- func (s *AllTypesCreate) SetInt8(val int32)
- func (s *AllTypesCreate) SetState(val AllTypesCreateState)
- func (s *AllTypesCreate) SetStringType(val string)
- func (s *AllTypesCreate) SetText(val string)
- func (s *AllTypesCreate) SetTime(val time.Time)
- func (s *AllTypesCreate) SetUUID(val uuid.UUID)
- func (s *AllTypesCreate) SetUint(val int64)
- func (s *AllTypesCreate) SetUint16(val int32)
- func (s *AllTypesCreate) SetUint32(val int64)
- func (s *AllTypesCreate) SetUint64(val int64)
- func (s *AllTypesCreate) SetUint8(val int32)
- func (s *AllTypesCreate) UnmarshalJSON(data []byte) error
- func (s AllTypesCreate) Validate() error
- type AllTypesCreateState
- type AllTypesList
- func (s *AllTypesList) Decode(d *jx.Decoder) error
- func (at *AllTypesList) Elem() AllTypesList
- func (s AllTypesList) Encode(e *jx.Encoder)
- func (s AllTypesList) GetBool() bool
- func (s AllTypesList) GetBytes() []byte
- func (s AllTypesList) GetFloat32() float32
- func (s AllTypesList) GetFloat64() float64
- func (s AllTypesList) GetID() int64
- func (s AllTypesList) GetInt() int
- func (s AllTypesList) GetInt16() int32
- func (s AllTypesList) GetInt32() int32
- func (s AllTypesList) GetInt64() int64
- func (s AllTypesList) GetInt8() int32
- func (s AllTypesList) GetState() AllTypesListState
- func (s AllTypesList) GetStringType() string
- func (s AllTypesList) GetText() string
- func (s AllTypesList) GetTime() time.Time
- func (s AllTypesList) GetUUID() uuid.UUID
- func (s AllTypesList) GetUint() int64
- func (s AllTypesList) GetUint16() int32
- func (s AllTypesList) GetUint32() int64
- func (s AllTypesList) GetUint64() int64
- func (s AllTypesList) GetUint8() int32
- func (s AllTypesList) MarshalJSON() ([]byte, error)
- func (s *AllTypesList) SetBool(val bool)
- func (s *AllTypesList) SetBytes(val []byte)
- func (s *AllTypesList) SetFloat32(val float32)
- func (s *AllTypesList) SetFloat64(val float64)
- func (s *AllTypesList) SetID(val int64)
- func (s *AllTypesList) SetInt(val int)
- func (s *AllTypesList) SetInt16(val int32)
- func (s *AllTypesList) SetInt32(val int32)
- func (s *AllTypesList) SetInt64(val int64)
- func (s *AllTypesList) SetInt8(val int32)
- func (s *AllTypesList) SetState(val AllTypesListState)
- func (s *AllTypesList) SetStringType(val string)
- func (s *AllTypesList) SetText(val string)
- func (s *AllTypesList) SetTime(val time.Time)
- func (s *AllTypesList) SetUUID(val uuid.UUID)
- func (s *AllTypesList) SetUint(val int64)
- func (s *AllTypesList) SetUint16(val int32)
- func (s *AllTypesList) SetUint32(val int64)
- func (s *AllTypesList) SetUint64(val int64)
- func (s *AllTypesList) SetUint8(val int32)
- func (s *AllTypesList) UnmarshalJSON(data []byte) error
- func (s AllTypesList) Validate() error
- type AllTypesListState
- type AllTypesRead
- func (s *AllTypesRead) Decode(d *jx.Decoder) error
- func (at *AllTypesRead) Elem() AllTypesRead
- func (s AllTypesRead) Encode(e *jx.Encoder)
- func (s AllTypesRead) GetBool() bool
- func (s AllTypesRead) GetBytes() []byte
- func (s AllTypesRead) GetFloat32() float32
- func (s AllTypesRead) GetFloat64() float64
- func (s AllTypesRead) GetID() int64
- func (s AllTypesRead) GetInt() int
- func (s AllTypesRead) GetInt16() int32
- func (s AllTypesRead) GetInt32() int32
- func (s AllTypesRead) GetInt64() int64
- func (s AllTypesRead) GetInt8() int32
- func (s AllTypesRead) GetState() AllTypesReadState
- func (s AllTypesRead) GetStringType() string
- func (s AllTypesRead) GetText() string
- func (s AllTypesRead) GetTime() time.Time
- func (s AllTypesRead) GetUUID() uuid.UUID
- func (s AllTypesRead) GetUint() int64
- func (s AllTypesRead) GetUint16() int32
- func (s AllTypesRead) GetUint32() int64
- func (s AllTypesRead) GetUint64() int64
- func (s AllTypesRead) GetUint8() int32
- func (s AllTypesRead) MarshalJSON() ([]byte, error)
- func (s *AllTypesRead) SetBool(val bool)
- func (s *AllTypesRead) SetBytes(val []byte)
- func (s *AllTypesRead) SetFloat32(val float32)
- func (s *AllTypesRead) SetFloat64(val float64)
- func (s *AllTypesRead) SetID(val int64)
- func (s *AllTypesRead) SetInt(val int)
- func (s *AllTypesRead) SetInt16(val int32)
- func (s *AllTypesRead) SetInt32(val int32)
- func (s *AllTypesRead) SetInt64(val int64)
- func (s *AllTypesRead) SetInt8(val int32)
- func (s *AllTypesRead) SetState(val AllTypesReadState)
- func (s *AllTypesRead) SetStringType(val string)
- func (s *AllTypesRead) SetText(val string)
- func (s *AllTypesRead) SetTime(val time.Time)
- func (s *AllTypesRead) SetUUID(val uuid.UUID)
- func (s *AllTypesRead) SetUint(val int64)
- func (s *AllTypesRead) SetUint16(val int32)
- func (s *AllTypesRead) SetUint32(val int64)
- func (s *AllTypesRead) SetUint64(val int64)
- func (s *AllTypesRead) SetUint8(val int32)
- func (s *AllTypesRead) UnmarshalJSON(data []byte) error
- func (s AllTypesRead) Validate() error
- type AllTypesReadState
- type AllTypesUpdate
- func (s *AllTypesUpdate) Decode(d *jx.Decoder) error
- func (at *AllTypesUpdate) Elem() AllTypesUpdate
- func (s AllTypesUpdate) Encode(e *jx.Encoder)
- func (s AllTypesUpdate) GetBool() bool
- func (s AllTypesUpdate) GetBytes() []byte
- func (s AllTypesUpdate) GetFloat32() float32
- func (s AllTypesUpdate) GetFloat64() float64
- func (s AllTypesUpdate) GetID() int64
- func (s AllTypesUpdate) GetInt() int
- func (s AllTypesUpdate) GetInt16() int32
- func (s AllTypesUpdate) GetInt32() int32
- func (s AllTypesUpdate) GetInt64() int64
- func (s AllTypesUpdate) GetInt8() int32
- func (s AllTypesUpdate) GetState() AllTypesUpdateState
- func (s AllTypesUpdate) GetStringType() string
- func (s AllTypesUpdate) GetText() string
- func (s AllTypesUpdate) GetTime() time.Time
- func (s AllTypesUpdate) GetUUID() uuid.UUID
- func (s AllTypesUpdate) GetUint() int64
- func (s AllTypesUpdate) GetUint16() int32
- func (s AllTypesUpdate) GetUint32() int64
- func (s AllTypesUpdate) GetUint64() int64
- func (s AllTypesUpdate) GetUint8() int32
- func (s AllTypesUpdate) MarshalJSON() ([]byte, error)
- func (s *AllTypesUpdate) SetBool(val bool)
- func (s *AllTypesUpdate) SetBytes(val []byte)
- func (s *AllTypesUpdate) SetFloat32(val float32)
- func (s *AllTypesUpdate) SetFloat64(val float64)
- func (s *AllTypesUpdate) SetID(val int64)
- func (s *AllTypesUpdate) SetInt(val int)
- func (s *AllTypesUpdate) SetInt16(val int32)
- func (s *AllTypesUpdate) SetInt32(val int32)
- func (s *AllTypesUpdate) SetInt64(val int64)
- func (s *AllTypesUpdate) SetInt8(val int32)
- func (s *AllTypesUpdate) SetState(val AllTypesUpdateState)
- func (s *AllTypesUpdate) SetStringType(val string)
- func (s *AllTypesUpdate) SetText(val string)
- func (s *AllTypesUpdate) SetTime(val time.Time)
- func (s *AllTypesUpdate) SetUUID(val uuid.UUID)
- func (s *AllTypesUpdate) SetUint(val int64)
- func (s *AllTypesUpdate) SetUint16(val int32)
- func (s *AllTypesUpdate) SetUint32(val int64)
- func (s *AllTypesUpdate) SetUint64(val int64)
- func (s *AllTypesUpdate) SetUint8(val int32)
- func (s *AllTypesUpdate) UnmarshalJSON(data []byte) error
- func (s AllTypesUpdate) Validate() error
- type AllTypesUpdateState
- type CategoryCreate
- func (s *CategoryCreate) Decode(d *jx.Decoder) error
- func (c *CategoryCreate) Elem() CategoryCreate
- func (s CategoryCreate) Encode(e *jx.Encoder)
- func (s CategoryCreate) GetID() int
- func (s CategoryCreate) GetName() string
- func (s CategoryCreate) GetReadonly() OptString
- func (s CategoryCreate) MarshalJSON() ([]byte, error)
- func (s *CategoryCreate) SetID(val int)
- func (s *CategoryCreate) SetName(val string)
- func (s *CategoryCreate) SetReadonly(val OptString)
- func (s *CategoryCreate) UnmarshalJSON(data []byte) error
- type CategoryList
- func (s *CategoryList) Decode(d *jx.Decoder) error
- func (c *CategoryList) Elem() CategoryList
- func (s CategoryList) Encode(e *jx.Encoder)
- func (s CategoryList) GetID() int
- func (s CategoryList) GetName() string
- func (s CategoryList) GetReadonly() OptString
- func (s CategoryList) MarshalJSON() ([]byte, error)
- func (s *CategoryList) SetID(val int)
- func (s *CategoryList) SetName(val string)
- func (s *CategoryList) SetReadonly(val OptString)
- func (s *CategoryList) UnmarshalJSON(data []byte) error
- type CategoryPetsList
- func (s *CategoryPetsList) Decode(d *jx.Decoder) error
- func (pe *CategoryPetsList) Elem() CategoryPetsList
- func (s CategoryPetsList) Encode(e *jx.Encoder)
- func (s CategoryPetsList) GetBirthday() OptDateTime
- func (s CategoryPetsList) GetHeight() OptInt
- func (s CategoryPetsList) GetID() int
- func (s CategoryPetsList) GetName() string
- func (s CategoryPetsList) GetTagID() []byte
- func (s CategoryPetsList) GetWeight() OptInt
- func (s CategoryPetsList) MarshalJSON() ([]byte, error)
- func (s *CategoryPetsList) SetBirthday(val OptDateTime)
- func (s *CategoryPetsList) SetHeight(val OptInt)
- func (s *CategoryPetsList) SetID(val int)
- func (s *CategoryPetsList) SetName(val string)
- func (s *CategoryPetsList) SetTagID(val []byte)
- func (s *CategoryPetsList) SetWeight(val OptInt)
- func (s *CategoryPetsList) UnmarshalJSON(data []byte) error
- type CategoryRead
- func (s *CategoryRead) Decode(d *jx.Decoder) error
- func (c *CategoryRead) Elem() CategoryRead
- func (s CategoryRead) Encode(e *jx.Encoder)
- func (s CategoryRead) GetID() int
- func (s CategoryRead) GetName() string
- func (s CategoryRead) GetReadonly() OptString
- func (s CategoryRead) MarshalJSON() ([]byte, error)
- func (s *CategoryRead) SetID(val int)
- func (s *CategoryRead) SetName(val string)
- func (s *CategoryRead) SetReadonly(val OptString)
- func (s *CategoryRead) UnmarshalJSON(data []byte) error
- type CategoryUpdate
- func (s *CategoryUpdate) Decode(d *jx.Decoder) error
- func (c *CategoryUpdate) Elem() CategoryUpdate
- func (s CategoryUpdate) Encode(e *jx.Encoder)
- func (s CategoryUpdate) GetID() int
- func (s CategoryUpdate) GetName() string
- func (s CategoryUpdate) GetReadonly() OptString
- func (s CategoryUpdate) MarshalJSON() ([]byte, error)
- func (s *CategoryUpdate) SetID(val int)
- func (s *CategoryUpdate) SetName(val string)
- func (s *CategoryUpdate) SetReadonly(val OptString)
- func (s *CategoryUpdate) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) CreateAllTypes(ctx context.Context, request CreateAllTypesReq) (res CreateAllTypesRes, err error)
- func (c *Client) CreateCategory(ctx context.Context, request CreateCategoryReq) (res CreateCategoryRes, err error)
- func (c *Client) CreatePet(ctx context.Context, request CreatePetReq) (res CreatePetRes, err error)
- func (c *Client) CreateUser(ctx context.Context, request CreateUserReq) (res CreateUserRes, err error)
- func (c *Client) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (res DeleteAllTypesRes, err error)
- func (c *Client) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (res DeleteCategoryRes, err error)
- func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (res DeletePetRes, err error)
- func (c *Client) DeleteUser(ctx context.Context, params DeleteUserParams) (res DeleteUserRes, err error)
- func (c *Client) ListAllTypes(ctx context.Context, params ListAllTypesParams) (res ListAllTypesRes, err error)
- func (c *Client) ListCategory(ctx context.Context, params ListCategoryParams) (res ListCategoryRes, err error)
- func (c *Client) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (res ListCategoryPetsRes, err error)
- func (c *Client) ListPet(ctx context.Context, params ListPetParams) (res ListPetRes, err error)
- func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (res ListPetCategoriesRes, err error)
- func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (res ListPetFriendsRes, err error)
- func (c *Client) ListUser(ctx context.Context, params ListUserParams) (res ListUserRes, err error)
- func (c *Client) ListUserPets(ctx context.Context, params ListUserPetsParams) (res ListUserPetsRes, err error)
- func (c *Client) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (res ReadAllTypesRes, err error)
- func (c *Client) ReadCategory(ctx context.Context, params ReadCategoryParams) (res ReadCategoryRes, err error)
- func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (res ReadPetRes, err error)
- func (c *Client) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (res ReadPetOwnerRes, err error)
- func (c *Client) ReadUser(ctx context.Context, params ReadUserParams) (res ReadUserRes, err error)
- func (c *Client) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (res ReadUserBestFriendRes, err error)
- func (c *Client) UpdateAllTypes(ctx context.Context, request UpdateAllTypesReq, params UpdateAllTypesParams) (res UpdateAllTypesRes, err error)
- func (c *Client) UpdateCategory(ctx context.Context, request UpdateCategoryReq, params UpdateCategoryParams) (res UpdateCategoryRes, err error)
- func (c *Client) UpdatePet(ctx context.Context, request UpdatePetReq, params UpdatePetParams) (res UpdatePetRes, err error)
- func (c *Client) UpdateUser(ctx context.Context, request UpdateUserReq, params UpdateUserParams) (res UpdateUserRes, err error)
- type CreateAllTypesReq
- func (s *CreateAllTypesReq) Decode(d *jx.Decoder) error
- func (s CreateAllTypesReq) Encode(e *jx.Encoder)
- func (s CreateAllTypesReq) GetBool() bool
- func (s CreateAllTypesReq) GetBytes() []byte
- func (s CreateAllTypesReq) GetFloat32() float32
- func (s CreateAllTypesReq) GetFloat64() float64
- func (s CreateAllTypesReq) GetInt() int
- func (s CreateAllTypesReq) GetInt16() int32
- func (s CreateAllTypesReq) GetInt32() int32
- func (s CreateAllTypesReq) GetInt64() int64
- func (s CreateAllTypesReq) GetInt8() int32
- func (s CreateAllTypesReq) GetState() CreateAllTypesReqState
- func (s CreateAllTypesReq) GetStringType() string
- func (s CreateAllTypesReq) GetText() string
- func (s CreateAllTypesReq) GetTime() time.Time
- func (s CreateAllTypesReq) GetUUID() uuid.UUID
- func (s CreateAllTypesReq) GetUint() int64
- func (s CreateAllTypesReq) GetUint16() int32
- func (s CreateAllTypesReq) GetUint32() int64
- func (s CreateAllTypesReq) GetUint64() int64
- func (s CreateAllTypesReq) GetUint8() int32
- func (s CreateAllTypesReq) MarshalJSON() ([]byte, error)
- func (s *CreateAllTypesReq) SetBool(val bool)
- func (s *CreateAllTypesReq) SetBytes(val []byte)
- func (s *CreateAllTypesReq) SetFloat32(val float32)
- func (s *CreateAllTypesReq) SetFloat64(val float64)
- func (s *CreateAllTypesReq) SetInt(val int)
- func (s *CreateAllTypesReq) SetInt16(val int32)
- func (s *CreateAllTypesReq) SetInt32(val int32)
- func (s *CreateAllTypesReq) SetInt64(val int64)
- func (s *CreateAllTypesReq) SetInt8(val int32)
- func (s *CreateAllTypesReq) SetState(val CreateAllTypesReqState)
- func (s *CreateAllTypesReq) SetStringType(val string)
- func (s *CreateAllTypesReq) SetText(val string)
- func (s *CreateAllTypesReq) SetTime(val time.Time)
- func (s *CreateAllTypesReq) SetUUID(val uuid.UUID)
- func (s *CreateAllTypesReq) SetUint(val int64)
- func (s *CreateAllTypesReq) SetUint16(val int32)
- func (s *CreateAllTypesReq) SetUint32(val int64)
- func (s *CreateAllTypesReq) SetUint64(val int64)
- func (s *CreateAllTypesReq) SetUint8(val int32)
- func (s *CreateAllTypesReq) UnmarshalJSON(data []byte) error
- func (s CreateAllTypesReq) Validate() error
- type CreateAllTypesReqState
- type CreateAllTypesRes
- type CreateCategoryReq
- func (s *CreateCategoryReq) Decode(d *jx.Decoder) error
- func (s CreateCategoryReq) Encode(e *jx.Encoder)
- func (s CreateCategoryReq) GetName() string
- func (s CreateCategoryReq) GetPets() []int
- func (s CreateCategoryReq) MarshalJSON() ([]byte, error)
- func (s *CreateCategoryReq) SetName(val string)
- func (s *CreateCategoryReq) SetPets(val []int)
- func (s *CreateCategoryReq) UnmarshalJSON(data []byte) error
- type CreateCategoryRes
- 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) GetHeight() OptInt
- func (s CreatePetReq) GetName() string
- func (s CreatePetReq) GetOwner() int
- func (s CreatePetReq) GetTagID() []byte
- 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) SetFriends(val []int)
- func (s *CreatePetReq) SetHeight(val OptInt)
- func (s *CreatePetReq) SetName(val string)
- func (s *CreatePetReq) SetOwner(val int)
- func (s *CreatePetReq) SetTagID(val []byte)
- func (s *CreatePetReq) SetWeight(val OptInt)
- func (s *CreatePetReq) UnmarshalJSON(data []byte) error
- type CreatePetRes
- type CreateUserReq
- func (s *CreateUserReq) Decode(d *jx.Decoder) error
- func (s CreateUserReq) Encode(e *jx.Encoder)
- func (s CreateUserReq) GetAge() int64
- func (s CreateUserReq) GetBestFriend() OptInt
- func (s CreateUserReq) GetFavoriteCatBreed() CreateUserReqFavoriteCatBreed
- func (s CreateUserReq) GetFavoriteDogBreed() OptCreateUserReqFavoriteDogBreed
- func (s CreateUserReq) GetFavoriteFishBreed() OptCreateUserReqFavoriteFishBreed
- func (s CreateUserReq) GetHeight() OptInt64
- func (s CreateUserReq) GetName() string
- func (s CreateUserReq) GetPets() []int
- func (s CreateUserReq) MarshalJSON() ([]byte, error)
- func (s *CreateUserReq) SetAge(val int64)
- func (s *CreateUserReq) SetBestFriend(val OptInt)
- func (s *CreateUserReq) SetFavoriteCatBreed(val CreateUserReqFavoriteCatBreed)
- func (s *CreateUserReq) SetFavoriteDogBreed(val OptCreateUserReqFavoriteDogBreed)
- func (s *CreateUserReq) SetFavoriteFishBreed(val OptCreateUserReqFavoriteFishBreed)
- func (s *CreateUserReq) SetHeight(val OptInt64)
- func (s *CreateUserReq) SetName(val string)
- func (s *CreateUserReq) SetPets(val []int)
- func (s *CreateUserReq) UnmarshalJSON(data []byte) error
- func (s CreateUserReq) Validate() error
- type CreateUserReqFavoriteCatBreed
- func (s *CreateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *CreateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s CreateUserReqFavoriteCatBreed) Validate() error
- type CreateUserReqFavoriteDogBreed
- func (s *CreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *CreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s CreateUserReqFavoriteDogBreed) Validate() error
- type CreateUserReqFavoriteFishBreed
- func (s *CreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s CreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s CreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *CreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s CreateUserReqFavoriteFishBreed) Validate() error
- type CreateUserRes
- type DeleteAllTypesNoContent
- type DeleteAllTypesParams
- type DeleteAllTypesRes
- type DeleteCategoryNoContent
- type DeleteCategoryParams
- type DeleteCategoryRes
- type DeletePetNoContent
- type DeletePetParams
- type DeletePetRes
- type DeleteUserNoContent
- type DeleteUserParams
- type DeleteUserRes
- type ErrorHandler
- type Handler
- type ListAllTypesOKApplicationJSON
- func (s *ListAllTypesOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListAllTypesOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListAllTypesOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListAllTypesOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListAllTypesOKApplicationJSON) Validate() error
- type ListAllTypesParams
- type ListAllTypesRes
- type ListCategoryOKApplicationJSON
- func (s *ListCategoryOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListCategoryOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListCategoryOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListCategoryOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListCategoryOKApplicationJSON) Validate() error
- type ListCategoryParams
- type ListCategoryPetsOKApplicationJSON
- func (s *ListCategoryPetsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListCategoryPetsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListCategoryPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListCategoryPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListCategoryPetsOKApplicationJSON) Validate() error
- type ListCategoryPetsParams
- type ListCategoryPetsRes
- type ListCategoryRes
- 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) 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) 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) UnmarshalJSON(data []byte) error
- func (s ListPetOKApplicationJSON) Validate() error
- type ListPetParams
- type ListPetRes
- type ListUserOKApplicationJSON
- func (s *ListUserOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListUserOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListUserOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListUserOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListUserOKApplicationJSON) Validate() error
- type ListUserParams
- type ListUserPetsOKApplicationJSON
- func (s *ListUserPetsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s ListUserPetsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s ListUserPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *ListUserPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s ListUserPetsOKApplicationJSON) Validate() error
- type ListUserPetsParams
- type ListUserPetsRes
- type ListUserRes
- type Middleware
- type OgentHandler
- func (h *OgentHandler) CreateAllTypes(ctx context.Context, req CreateAllTypesReq) (CreateAllTypesRes, error)
- func (h *OgentHandler) CreateCategory(ctx context.Context, req CreateCategoryReq) (CreateCategoryRes, error)
- func (h *OgentHandler) CreatePet(ctx context.Context, req CreatePetReq) (CreatePetRes, error)
- func (h *OgentHandler) CreateUser(ctx context.Context, req CreateUserReq) (CreateUserRes, error)
- func (h *OgentHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error)
- func (h *OgentHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error)
- func (h *OgentHandler) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
- func (h *OgentHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
- func (h *OgentHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error)
- func (h *OgentHandler) ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error)
- func (h *OgentHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error)
- func (h *OgentHandler) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
- func (h *OgentHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
- func (h *OgentHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
- func (h *OgentHandler) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)
- func (h *OgentHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error)
- func (h *OgentHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error)
- func (h *OgentHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error)
- func (h *OgentHandler) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
- func (h *OgentHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
- func (h *OgentHandler) ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error)
- func (h *OgentHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error)
- func (h *OgentHandler) UpdateAllTypes(ctx context.Context, req UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error)
- func (h *OgentHandler) UpdateCategory(ctx context.Context, req UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error)
- func (h *OgentHandler) UpdatePet(ctx context.Context, req UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
- func (h *OgentHandler) UpdateUser(ctx context.Context, req UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error)
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCreateUserReqFavoriteDogBreed
- func (o *OptCreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptCreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptCreateUserReqFavoriteDogBreed) Get() (v CreateUserReqFavoriteDogBreed, ok bool)
- func (o OptCreateUserReqFavoriteDogBreed) IsSet() bool
- func (s OptCreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptCreateUserReqFavoriteDogBreed) Or(d CreateUserReqFavoriteDogBreed) CreateUserReqFavoriteDogBreed
- func (o *OptCreateUserReqFavoriteDogBreed) Reset()
- func (o *OptCreateUserReqFavoriteDogBreed) SetTo(v CreateUserReqFavoriteDogBreed)
- func (s *OptCreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptCreateUserReqFavoriteFishBreed
- func (o *OptCreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptCreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptCreateUserReqFavoriteFishBreed) Get() (v CreateUserReqFavoriteFishBreed, ok bool)
- func (o OptCreateUserReqFavoriteFishBreed) IsSet() bool
- func (s OptCreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptCreateUserReqFavoriteFishBreed) Or(d CreateUserReqFavoriteFishBreed) CreateUserReqFavoriteFishBreed
- func (o *OptCreateUserReqFavoriteFishBreed) Reset()
- func (o *OptCreateUserReqFavoriteFishBreed) SetTo(v CreateUserReqFavoriteFishBreed)
- func (s *OptCreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- 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 (o *OptDateTime) SetTo(v time.Time)
- func (s *OptDateTime) UnmarshalJSON(data []byte) error
- type OptFloat32
- func (o *OptFloat32) Decode(d *jx.Decoder) error
- func (o OptFloat32) Encode(e *jx.Encoder)
- func (o OptFloat32) Get() (v float32, ok bool)
- func (o OptFloat32) IsSet() bool
- func (s OptFloat32) MarshalJSON() ([]byte, error)
- func (o OptFloat32) Or(d float32) float32
- func (o *OptFloat32) Reset()
- func (o *OptFloat32) SetTo(v float32)
- func (s *OptFloat32) UnmarshalJSON(data []byte) error
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) 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 (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptInt32
- func (o *OptInt32) Decode(d *jx.Decoder) error
- func (o OptInt32) Encode(e *jx.Encoder)
- func (o OptInt32) Get() (v int32, ok bool)
- func (o OptInt32) IsSet() bool
- func (s OptInt32) MarshalJSON() ([]byte, error)
- func (o OptInt32) Or(d int32) int32
- func (o *OptInt32) Reset()
- func (o *OptInt32) SetTo(v int32)
- func (s *OptInt32) UnmarshalJSON(data []byte) error
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptPetCreateOwnerFavoriteDogBreed
- func (o *OptPetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptPetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptPetCreateOwnerFavoriteDogBreed) Get() (v PetCreateOwnerFavoriteDogBreed, ok bool)
- func (o OptPetCreateOwnerFavoriteDogBreed) IsSet() bool
- func (s OptPetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptPetCreateOwnerFavoriteDogBreed) Or(d PetCreateOwnerFavoriteDogBreed) PetCreateOwnerFavoriteDogBreed
- func (o *OptPetCreateOwnerFavoriteDogBreed) Reset()
- func (o *OptPetCreateOwnerFavoriteDogBreed) SetTo(v PetCreateOwnerFavoriteDogBreed)
- func (s *OptPetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptPetCreateOwnerFavoriteFishBreed
- func (o *OptPetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptPetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptPetCreateOwnerFavoriteFishBreed) Get() (v PetCreateOwnerFavoriteFishBreed, ok bool)
- func (o OptPetCreateOwnerFavoriteFishBreed) IsSet() bool
- func (s OptPetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptPetCreateOwnerFavoriteFishBreed) Or(d PetCreateOwnerFavoriteFishBreed) PetCreateOwnerFavoriteFishBreed
- func (o *OptPetCreateOwnerFavoriteFishBreed) Reset()
- func (o *OptPetCreateOwnerFavoriteFishBreed) SetTo(v PetCreateOwnerFavoriteFishBreed)
- func (s *OptPetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptPetOwnerReadFavoriteDogBreed
- func (o *OptPetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptPetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptPetOwnerReadFavoriteDogBreed) Get() (v PetOwnerReadFavoriteDogBreed, ok bool)
- func (o OptPetOwnerReadFavoriteDogBreed) IsSet() bool
- func (s OptPetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptPetOwnerReadFavoriteDogBreed) Or(d PetOwnerReadFavoriteDogBreed) PetOwnerReadFavoriteDogBreed
- func (o *OptPetOwnerReadFavoriteDogBreed) Reset()
- func (o *OptPetOwnerReadFavoriteDogBreed) SetTo(v PetOwnerReadFavoriteDogBreed)
- func (s *OptPetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptPetOwnerReadFavoriteFishBreed
- func (o *OptPetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptPetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptPetOwnerReadFavoriteFishBreed) Get() (v PetOwnerReadFavoriteFishBreed, ok bool)
- func (o OptPetOwnerReadFavoriteFishBreed) IsSet() bool
- func (s OptPetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptPetOwnerReadFavoriteFishBreed) Or(d PetOwnerReadFavoriteFishBreed) PetOwnerReadFavoriteFishBreed
- func (o *OptPetOwnerReadFavoriteFishBreed) Reset()
- func (o *OptPetOwnerReadFavoriteFishBreed) SetTo(v PetOwnerReadFavoriteFishBreed)
- func (s *OptPetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptUUID
- func (o *OptUUID) Decode(d *jx.Decoder) error
- func (o OptUUID) Encode(e *jx.Encoder)
- func (o OptUUID) Get() (v uuid.UUID, ok bool)
- func (o OptUUID) IsSet() bool
- func (s OptUUID) MarshalJSON() ([]byte, error)
- func (o OptUUID) Or(d uuid.UUID) uuid.UUID
- func (o *OptUUID) Reset()
- func (o *OptUUID) SetTo(v uuid.UUID)
- func (s *OptUUID) UnmarshalJSON(data []byte) error
- type OptUpdateAllTypesReqState
- func (o *OptUpdateAllTypesReqState) Decode(d *jx.Decoder) error
- func (o OptUpdateAllTypesReqState) Encode(e *jx.Encoder)
- func (o OptUpdateAllTypesReqState) Get() (v UpdateAllTypesReqState, ok bool)
- func (o OptUpdateAllTypesReqState) IsSet() bool
- func (s OptUpdateAllTypesReqState) MarshalJSON() ([]byte, error)
- func (o OptUpdateAllTypesReqState) Or(d UpdateAllTypesReqState) UpdateAllTypesReqState
- func (o *OptUpdateAllTypesReqState) Reset()
- func (o *OptUpdateAllTypesReqState) SetTo(v UpdateAllTypesReqState)
- func (s *OptUpdateAllTypesReqState) UnmarshalJSON(data []byte) error
- type OptUpdateUserReqFavoriteCatBreed
- func (o *OptUpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (o OptUpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
- func (o OptUpdateUserReqFavoriteCatBreed) Get() (v UpdateUserReqFavoriteCatBreed, ok bool)
- func (o OptUpdateUserReqFavoriteCatBreed) IsSet() bool
- func (s OptUpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (o OptUpdateUserReqFavoriteCatBreed) Or(d UpdateUserReqFavoriteCatBreed) UpdateUserReqFavoriteCatBreed
- func (o *OptUpdateUserReqFavoriteCatBreed) Reset()
- func (o *OptUpdateUserReqFavoriteCatBreed) SetTo(v UpdateUserReqFavoriteCatBreed)
- func (s *OptUpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
- type OptUpdateUserReqFavoriteDogBreed
- func (o *OptUpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUpdateUserReqFavoriteDogBreed) Get() (v UpdateUserReqFavoriteDogBreed, ok bool)
- func (o OptUpdateUserReqFavoriteDogBreed) IsSet() bool
- func (s OptUpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUpdateUserReqFavoriteDogBreed) Or(d UpdateUserReqFavoriteDogBreed) UpdateUserReqFavoriteDogBreed
- func (o *OptUpdateUserReqFavoriteDogBreed) Reset()
- func (o *OptUpdateUserReqFavoriteDogBreed) SetTo(v UpdateUserReqFavoriteDogBreed)
- func (s *OptUpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUpdateUserReqFavoriteFishBreed
- func (o *OptUpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUpdateUserReqFavoriteFishBreed) Get() (v UpdateUserReqFavoriteFishBreed, ok bool)
- func (o OptUpdateUserReqFavoriteFishBreed) IsSet() bool
- func (s OptUpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUpdateUserReqFavoriteFishBreed) Or(d UpdateUserReqFavoriteFishBreed) UpdateUserReqFavoriteFishBreed
- func (o *OptUpdateUserReqFavoriteFishBreed) Reset()
- func (o *OptUpdateUserReqFavoriteFishBreed) SetTo(v UpdateUserReqFavoriteFishBreed)
- func (s *OptUpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserBestFriendReadFavoriteDogBreed
- func (o *OptUserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserBestFriendReadFavoriteDogBreed) Get() (v UserBestFriendReadFavoriteDogBreed, ok bool)
- func (o OptUserBestFriendReadFavoriteDogBreed) IsSet() bool
- func (s OptUserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserBestFriendReadFavoriteDogBreed) Or(d UserBestFriendReadFavoriteDogBreed) UserBestFriendReadFavoriteDogBreed
- func (o *OptUserBestFriendReadFavoriteDogBreed) Reset()
- func (o *OptUserBestFriendReadFavoriteDogBreed) SetTo(v UserBestFriendReadFavoriteDogBreed)
- func (s *OptUserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserBestFriendReadFavoriteFishBreed
- func (o *OptUserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserBestFriendReadFavoriteFishBreed) Get() (v UserBestFriendReadFavoriteFishBreed, ok bool)
- func (o OptUserBestFriendReadFavoriteFishBreed) IsSet() bool
- func (s OptUserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserBestFriendReadFavoriteFishBreed) Or(d UserBestFriendReadFavoriteFishBreed) UserBestFriendReadFavoriteFishBreed
- func (o *OptUserBestFriendReadFavoriteFishBreed) Reset()
- func (o *OptUserBestFriendReadFavoriteFishBreed) SetTo(v UserBestFriendReadFavoriteFishBreed)
- func (s *OptUserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserCreateFavoriteDogBreed
- func (o *OptUserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserCreateFavoriteDogBreed) Get() (v UserCreateFavoriteDogBreed, ok bool)
- func (o OptUserCreateFavoriteDogBreed) IsSet() bool
- func (s OptUserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserCreateFavoriteDogBreed) Or(d UserCreateFavoriteDogBreed) UserCreateFavoriteDogBreed
- func (o *OptUserCreateFavoriteDogBreed) Reset()
- func (o *OptUserCreateFavoriteDogBreed) SetTo(v UserCreateFavoriteDogBreed)
- func (s *OptUserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserCreateFavoriteFishBreed
- func (o *OptUserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserCreateFavoriteFishBreed) Get() (v UserCreateFavoriteFishBreed, ok bool)
- func (o OptUserCreateFavoriteFishBreed) IsSet() bool
- func (s OptUserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserCreateFavoriteFishBreed) Or(d UserCreateFavoriteFishBreed) UserCreateFavoriteFishBreed
- func (o *OptUserCreateFavoriteFishBreed) Reset()
- func (o *OptUserCreateFavoriteFishBreed) SetTo(v UserCreateFavoriteFishBreed)
- func (s *OptUserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserListFavoriteDogBreed
- func (o *OptUserListFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserListFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserListFavoriteDogBreed) Get() (v UserListFavoriteDogBreed, ok bool)
- func (o OptUserListFavoriteDogBreed) IsSet() bool
- func (s OptUserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserListFavoriteDogBreed) Or(d UserListFavoriteDogBreed) UserListFavoriteDogBreed
- func (o *OptUserListFavoriteDogBreed) Reset()
- func (o *OptUserListFavoriteDogBreed) SetTo(v UserListFavoriteDogBreed)
- func (s *OptUserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserListFavoriteFishBreed
- func (o *OptUserListFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserListFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserListFavoriteFishBreed) Get() (v UserListFavoriteFishBreed, ok bool)
- func (o OptUserListFavoriteFishBreed) IsSet() bool
- func (s OptUserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserListFavoriteFishBreed) Or(d UserListFavoriteFishBreed) UserListFavoriteFishBreed
- func (o *OptUserListFavoriteFishBreed) Reset()
- func (o *OptUserListFavoriteFishBreed) SetTo(v UserListFavoriteFishBreed)
- func (s *OptUserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserReadFavoriteDogBreed
- func (o *OptUserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserReadFavoriteDogBreed) Get() (v UserReadFavoriteDogBreed, ok bool)
- func (o OptUserReadFavoriteDogBreed) IsSet() bool
- func (s OptUserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserReadFavoriteDogBreed) Or(d UserReadFavoriteDogBreed) UserReadFavoriteDogBreed
- func (o *OptUserReadFavoriteDogBreed) Reset()
- func (o *OptUserReadFavoriteDogBreed) SetTo(v UserReadFavoriteDogBreed)
- func (s *OptUserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserReadFavoriteFishBreed
- func (o *OptUserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserReadFavoriteFishBreed) Get() (v UserReadFavoriteFishBreed, ok bool)
- func (o OptUserReadFavoriteFishBreed) IsSet() bool
- func (s OptUserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserReadFavoriteFishBreed) Or(d UserReadFavoriteFishBreed) UserReadFavoriteFishBreed
- func (o *OptUserReadFavoriteFishBreed) Reset()
- func (o *OptUserReadFavoriteFishBreed) SetTo(v UserReadFavoriteFishBreed)
- func (s *OptUserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type OptUserUpdateFavoriteDogBreed
- func (o *OptUserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (o OptUserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (o OptUserUpdateFavoriteDogBreed) Get() (v UserUpdateFavoriteDogBreed, ok bool)
- func (o OptUserUpdateFavoriteDogBreed) IsSet() bool
- func (s OptUserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (o OptUserUpdateFavoriteDogBreed) Or(d UserUpdateFavoriteDogBreed) UserUpdateFavoriteDogBreed
- func (o *OptUserUpdateFavoriteDogBreed) Reset()
- func (o *OptUserUpdateFavoriteDogBreed) SetTo(v UserUpdateFavoriteDogBreed)
- func (s *OptUserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- type OptUserUpdateFavoriteFishBreed
- func (o *OptUserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (o OptUserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (o OptUserUpdateFavoriteFishBreed) Get() (v UserUpdateFavoriteFishBreed, ok bool)
- func (o OptUserUpdateFavoriteFishBreed) IsSet() bool
- func (s OptUserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (o OptUserUpdateFavoriteFishBreed) Or(d UserUpdateFavoriteFishBreed) UserUpdateFavoriteFishBreed
- func (o *OptUserUpdateFavoriteFishBreed) Reset()
- func (o *OptUserUpdateFavoriteFishBreed) SetTo(v UserUpdateFavoriteFishBreed)
- func (s *OptUserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- type Option
- func WithClient(client ht.Client) Option
- func WithErrorHandler(h ErrorHandler) Option
- func WithMaxMultipartMemory(max int64) Option
- func WithMeterProvider(provider metric.MeterProvider) Option
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
- func WithMiddleware(m ...Middleware) Option
- func WithNotFound(notFound http.HandlerFunc) Option
- func WithPathPrefix(prefix string) Option
- func WithTracerProvider(provider trace.TracerProvider) Option
- type PetCategoriesList
- func (s *PetCategoriesList) Decode(d *jx.Decoder) error
- func (c *PetCategoriesList) Elem() PetCategoriesList
- func (s PetCategoriesList) Encode(e *jx.Encoder)
- func (s PetCategoriesList) GetID() int
- func (s PetCategoriesList) GetName() string
- func (s PetCategoriesList) GetReadonly() OptString
- func (s PetCategoriesList) MarshalJSON() ([]byte, error)
- func (s *PetCategoriesList) SetID(val int)
- func (s *PetCategoriesList) SetName(val string)
- func (s *PetCategoriesList) SetReadonly(val OptString)
- func (s *PetCategoriesList) UnmarshalJSON(data []byte) error
- type PetCreate
- func (s *PetCreate) Decode(d *jx.Decoder) error
- func (pe *PetCreate) Elem() PetCreate
- func (s PetCreate) Encode(e *jx.Encoder)
- func (s PetCreate) GetBirthday() OptDateTime
- func (s PetCreate) GetCategories() []PetCreateCategories
- func (s PetCreate) GetHeight() OptInt
- func (s PetCreate) GetID() int
- func (s PetCreate) GetName() string
- func (s PetCreate) GetOwner() PetCreateOwner
- func (s PetCreate) GetTagID() []byte
- 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) SetHeight(val OptInt)
- func (s *PetCreate) SetID(val int)
- func (s *PetCreate) SetName(val string)
- func (s *PetCreate) SetOwner(val PetCreateOwner)
- func (s *PetCreate) SetTagID(val []byte)
- func (s *PetCreate) SetWeight(val OptInt)
- func (s *PetCreate) UnmarshalJSON(data []byte) error
- func (s PetCreate) Validate() error
- type PetCreateCategories
- func (s *PetCreateCategories) Decode(d *jx.Decoder) error
- func (c *PetCreateCategories) Elem() PetCreateCategories
- func (s PetCreateCategories) Encode(e *jx.Encoder)
- func (s PetCreateCategories) GetID() int
- func (s PetCreateCategories) GetName() string
- func (s PetCreateCategories) GetReadonly() OptString
- func (s PetCreateCategories) MarshalJSON() ([]byte, error)
- func (s *PetCreateCategories) SetID(val int)
- func (s *PetCreateCategories) SetName(val string)
- func (s *PetCreateCategories) SetReadonly(val OptString)
- func (s *PetCreateCategories) UnmarshalJSON(data []byte) error
- type PetCreateOwner
- func (s *PetCreateOwner) Decode(d *jx.Decoder) error
- func (u *PetCreateOwner) Elem() PetCreateOwner
- func (s PetCreateOwner) Encode(e *jx.Encoder)
- func (s PetCreateOwner) GetAge() int64
- func (s PetCreateOwner) GetFavoriteCatBreed() PetCreateOwnerFavoriteCatBreed
- func (s PetCreateOwner) GetFavoriteDogBreed() OptPetCreateOwnerFavoriteDogBreed
- func (s PetCreateOwner) GetFavoriteFishBreed() OptPetCreateOwnerFavoriteFishBreed
- func (s PetCreateOwner) GetHeight() OptInt64
- func (s PetCreateOwner) GetID() int
- func (s PetCreateOwner) GetName() string
- func (s PetCreateOwner) MarshalJSON() ([]byte, error)
- func (s *PetCreateOwner) SetAge(val int64)
- func (s *PetCreateOwner) SetFavoriteCatBreed(val PetCreateOwnerFavoriteCatBreed)
- func (s *PetCreateOwner) SetFavoriteDogBreed(val OptPetCreateOwnerFavoriteDogBreed)
- func (s *PetCreateOwner) SetFavoriteFishBreed(val OptPetCreateOwnerFavoriteFishBreed)
- func (s *PetCreateOwner) SetHeight(val OptInt64)
- func (s *PetCreateOwner) SetID(val int)
- func (s *PetCreateOwner) SetName(val string)
- func (s *PetCreateOwner) UnmarshalJSON(data []byte) error
- func (s PetCreateOwner) Validate() error
- type PetCreateOwnerFavoriteCatBreed
- func (s *PetCreateOwnerFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *PetCreateOwnerFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s PetCreateOwnerFavoriteCatBreed) Validate() error
- type PetCreateOwnerFavoriteDogBreed
- func (s *PetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *PetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s PetCreateOwnerFavoriteDogBreed) Validate() error
- type PetCreateOwnerFavoriteFishBreed
- func (s *PetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s PetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s PetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *PetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s PetCreateOwnerFavoriteFishBreed) Validate() error
- type PetFriendsList
- func (s *PetFriendsList) Decode(d *jx.Decoder) error
- func (pe *PetFriendsList) Elem() PetFriendsList
- func (s PetFriendsList) Encode(e *jx.Encoder)
- func (s PetFriendsList) GetBirthday() OptDateTime
- func (s PetFriendsList) GetHeight() OptInt
- func (s PetFriendsList) GetID() int
- func (s PetFriendsList) GetName() string
- func (s PetFriendsList) GetTagID() []byte
- func (s PetFriendsList) GetWeight() OptInt
- func (s PetFriendsList) MarshalJSON() ([]byte, error)
- func (s *PetFriendsList) SetBirthday(val OptDateTime)
- func (s *PetFriendsList) SetHeight(val OptInt)
- func (s *PetFriendsList) SetID(val int)
- func (s *PetFriendsList) SetName(val string)
- func (s *PetFriendsList) SetTagID(val []byte)
- func (s *PetFriendsList) SetWeight(val OptInt)
- func (s *PetFriendsList) UnmarshalJSON(data []byte) error
- type PetList
- func (s *PetList) Decode(d *jx.Decoder) error
- func (pe *PetList) Elem() PetList
- func (s PetList) Encode(e *jx.Encoder)
- func (s PetList) GetBirthday() OptDateTime
- func (s PetList) GetHeight() OptInt
- func (s PetList) GetID() int
- func (s PetList) GetName() string
- func (s PetList) GetTagID() []byte
- func (s PetList) GetWeight() OptInt
- func (s PetList) MarshalJSON() ([]byte, error)
- func (s *PetList) SetBirthday(val OptDateTime)
- func (s *PetList) SetHeight(val OptInt)
- func (s *PetList) SetID(val int)
- func (s *PetList) SetName(val string)
- func (s *PetList) SetTagID(val []byte)
- func (s *PetList) SetWeight(val OptInt)
- func (s *PetList) UnmarshalJSON(data []byte) error
- type PetOwnerRead
- func (s *PetOwnerRead) Decode(d *jx.Decoder) error
- func (u *PetOwnerRead) Elem() PetOwnerRead
- func (s PetOwnerRead) Encode(e *jx.Encoder)
- func (s PetOwnerRead) GetAge() int64
- func (s PetOwnerRead) GetFavoriteCatBreed() PetOwnerReadFavoriteCatBreed
- func (s PetOwnerRead) GetFavoriteDogBreed() OptPetOwnerReadFavoriteDogBreed
- func (s PetOwnerRead) GetFavoriteFishBreed() OptPetOwnerReadFavoriteFishBreed
- func (s PetOwnerRead) GetHeight() OptInt64
- func (s PetOwnerRead) GetID() int
- func (s PetOwnerRead) GetName() string
- func (s PetOwnerRead) MarshalJSON() ([]byte, error)
- func (s *PetOwnerRead) SetAge(val int64)
- func (s *PetOwnerRead) SetFavoriteCatBreed(val PetOwnerReadFavoriteCatBreed)
- func (s *PetOwnerRead) SetFavoriteDogBreed(val OptPetOwnerReadFavoriteDogBreed)
- func (s *PetOwnerRead) SetFavoriteFishBreed(val OptPetOwnerReadFavoriteFishBreed)
- func (s *PetOwnerRead) SetHeight(val OptInt64)
- func (s *PetOwnerRead) SetID(val int)
- func (s *PetOwnerRead) SetName(val string)
- func (s *PetOwnerRead) UnmarshalJSON(data []byte) error
- func (s PetOwnerRead) Validate() error
- type PetOwnerReadFavoriteCatBreed
- func (s *PetOwnerReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *PetOwnerReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s PetOwnerReadFavoriteCatBreed) Validate() error
- type PetOwnerReadFavoriteDogBreed
- func (s *PetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *PetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s PetOwnerReadFavoriteDogBreed) Validate() error
- type PetOwnerReadFavoriteFishBreed
- func (s *PetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s PetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s PetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *PetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s PetOwnerReadFavoriteFishBreed) Validate() error
- type PetRead
- func (s *PetRead) Decode(d *jx.Decoder) error
- func (pe *PetRead) Elem() PetRead
- func (s PetRead) Encode(e *jx.Encoder)
- func (s PetRead) GetBirthday() OptDateTime
- func (s PetRead) GetHeight() OptInt
- func (s PetRead) GetID() int
- func (s PetRead) GetName() string
- func (s PetRead) GetTagID() []byte
- func (s PetRead) GetWeight() OptInt
- func (s PetRead) MarshalJSON() ([]byte, error)
- func (s *PetRead) SetBirthday(val OptDateTime)
- func (s *PetRead) SetHeight(val OptInt)
- func (s *PetRead) SetID(val int)
- func (s *PetRead) SetName(val string)
- func (s *PetRead) SetTagID(val []byte)
- func (s *PetRead) SetWeight(val OptInt)
- func (s *PetRead) UnmarshalJSON(data []byte) error
- type PetUpdate
- func (s *PetUpdate) Decode(d *jx.Decoder) error
- func (pe *PetUpdate) Elem() PetUpdate
- func (s PetUpdate) Encode(e *jx.Encoder)
- func (s PetUpdate) GetBirthday() OptDateTime
- func (s PetUpdate) GetHeight() OptInt
- func (s PetUpdate) GetID() int
- func (s PetUpdate) GetName() string
- func (s PetUpdate) GetTagID() []byte
- func (s PetUpdate) GetWeight() OptInt
- func (s PetUpdate) MarshalJSON() ([]byte, error)
- func (s *PetUpdate) SetBirthday(val OptDateTime)
- func (s *PetUpdate) SetHeight(val OptInt)
- func (s *PetUpdate) SetID(val int)
- func (s *PetUpdate) SetName(val string)
- func (s *PetUpdate) SetTagID(val []byte)
- 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) GetErrors() jx.Raw
- func (s R400) GetStatus() string
- func (s R400) MarshalJSON() ([]byte, error)
- func (s *R400) SetCode(val int)
- func (s *R400) SetErrors(val jx.Raw)
- 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) GetErrors() jx.Raw
- func (s R404) GetStatus() string
- func (s R404) MarshalJSON() ([]byte, error)
- func (s *R404) SetCode(val int)
- func (s *R404) SetErrors(val jx.Raw)
- 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) GetErrors() jx.Raw
- func (s R409) GetStatus() string
- func (s R409) MarshalJSON() ([]byte, error)
- func (s *R409) SetCode(val int)
- func (s *R409) SetErrors(val jx.Raw)
- 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) GetErrors() jx.Raw
- func (s R500) GetStatus() string
- func (s R500) MarshalJSON() ([]byte, error)
- func (s *R500) SetCode(val int)
- func (s *R500) SetErrors(val jx.Raw)
- func (s *R500) SetStatus(val string)
- func (s *R500) UnmarshalJSON(data []byte) error
- type ReadAllTypesParams
- type ReadAllTypesRes
- type ReadCategoryParams
- type ReadCategoryRes
- type ReadPetOwnerParams
- type ReadPetOwnerRes
- type ReadPetParams
- type ReadPetRes
- type ReadUserBestFriendParams
- type ReadUserBestFriendRes
- type ReadUserParams
- type ReadUserRes
- type Route
- type Server
- type UnimplementedHandler
- func (UnimplementedHandler) CreateAllTypes(ctx context.Context, req CreateAllTypesReq) (r CreateAllTypesRes, _ error)
- func (UnimplementedHandler) CreateCategory(ctx context.Context, req CreateCategoryReq) (r CreateCategoryRes, _ error)
- func (UnimplementedHandler) CreatePet(ctx context.Context, req CreatePetReq) (r CreatePetRes, _ error)
- func (UnimplementedHandler) CreateUser(ctx context.Context, req CreateUserReq) (r CreateUserRes, _ error)
- func (UnimplementedHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (r DeleteAllTypesRes, _ error)
- func (UnimplementedHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (r DeleteCategoryRes, _ error)
- func (UnimplementedHandler) DeletePet(ctx context.Context, params DeletePetParams) (r DeletePetRes, _ error)
- func (UnimplementedHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (r DeleteUserRes, _ error)
- func (UnimplementedHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (r ListAllTypesRes, _ error)
- func (UnimplementedHandler) ListCategory(ctx context.Context, params ListCategoryParams) (r ListCategoryRes, _ error)
- func (UnimplementedHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (r ListCategoryPetsRes, _ 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) ListUser(ctx context.Context, params ListUserParams) (r ListUserRes, _ error)
- func (UnimplementedHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (r ListUserPetsRes, _ error)
- func (UnimplementedHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (r ReadAllTypesRes, _ error)
- func (UnimplementedHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (r ReadCategoryRes, _ 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) ReadUser(ctx context.Context, params ReadUserParams) (r ReadUserRes, _ error)
- func (UnimplementedHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (r ReadUserBestFriendRes, _ error)
- func (UnimplementedHandler) UpdateAllTypes(ctx context.Context, req UpdateAllTypesReq, params UpdateAllTypesParams) (r UpdateAllTypesRes, _ error)
- func (UnimplementedHandler) UpdateCategory(ctx context.Context, req UpdateCategoryReq, params UpdateCategoryParams) (r UpdateCategoryRes, _ error)
- func (UnimplementedHandler) UpdatePet(ctx context.Context, req UpdatePetReq, params UpdatePetParams) (r UpdatePetRes, _ error)
- func (UnimplementedHandler) UpdateUser(ctx context.Context, req UpdateUserReq, params UpdateUserParams) (r UpdateUserRes, _ error)
- type UpdateAllTypesParams
- type UpdateAllTypesReq
- func (s *UpdateAllTypesReq) Decode(d *jx.Decoder) error
- func (s UpdateAllTypesReq) Encode(e *jx.Encoder)
- func (s UpdateAllTypesReq) GetBool() OptBool
- func (s UpdateAllTypesReq) GetBytes() []byte
- func (s UpdateAllTypesReq) GetFloat32() OptFloat32
- func (s UpdateAllTypesReq) GetFloat64() OptFloat64
- func (s UpdateAllTypesReq) GetInt() OptInt
- func (s UpdateAllTypesReq) GetInt16() OptInt32
- func (s UpdateAllTypesReq) GetInt32() OptInt32
- func (s UpdateAllTypesReq) GetInt64() OptInt64
- func (s UpdateAllTypesReq) GetInt8() OptInt32
- func (s UpdateAllTypesReq) GetState() OptUpdateAllTypesReqState
- func (s UpdateAllTypesReq) GetStringType() OptString
- func (s UpdateAllTypesReq) GetText() OptString
- func (s UpdateAllTypesReq) GetTime() OptDateTime
- func (s UpdateAllTypesReq) GetUUID() OptUUID
- func (s UpdateAllTypesReq) GetUint() OptInt64
- func (s UpdateAllTypesReq) GetUint16() OptInt32
- func (s UpdateAllTypesReq) GetUint32() OptInt64
- func (s UpdateAllTypesReq) GetUint64() OptInt64
- func (s UpdateAllTypesReq) GetUint8() OptInt32
- func (s UpdateAllTypesReq) MarshalJSON() ([]byte, error)
- func (s *UpdateAllTypesReq) SetBool(val OptBool)
- func (s *UpdateAllTypesReq) SetBytes(val []byte)
- func (s *UpdateAllTypesReq) SetFloat32(val OptFloat32)
- func (s *UpdateAllTypesReq) SetFloat64(val OptFloat64)
- func (s *UpdateAllTypesReq) SetInt(val OptInt)
- func (s *UpdateAllTypesReq) SetInt16(val OptInt32)
- func (s *UpdateAllTypesReq) SetInt32(val OptInt32)
- func (s *UpdateAllTypesReq) SetInt64(val OptInt64)
- func (s *UpdateAllTypesReq) SetInt8(val OptInt32)
- func (s *UpdateAllTypesReq) SetState(val OptUpdateAllTypesReqState)
- func (s *UpdateAllTypesReq) SetStringType(val OptString)
- func (s *UpdateAllTypesReq) SetText(val OptString)
- func (s *UpdateAllTypesReq) SetTime(val OptDateTime)
- func (s *UpdateAllTypesReq) SetUUID(val OptUUID)
- func (s *UpdateAllTypesReq) SetUint(val OptInt64)
- func (s *UpdateAllTypesReq) SetUint16(val OptInt32)
- func (s *UpdateAllTypesReq) SetUint32(val OptInt64)
- func (s *UpdateAllTypesReq) SetUint64(val OptInt64)
- func (s *UpdateAllTypesReq) SetUint8(val OptInt32)
- func (s *UpdateAllTypesReq) UnmarshalJSON(data []byte) error
- func (s UpdateAllTypesReq) Validate() error
- type UpdateAllTypesReqState
- type UpdateAllTypesRes
- type UpdateCategoryParams
- type UpdateCategoryReq
- func (s *UpdateCategoryReq) Decode(d *jx.Decoder) error
- func (s UpdateCategoryReq) Encode(e *jx.Encoder)
- func (s UpdateCategoryReq) GetName() OptString
- func (s UpdateCategoryReq) GetPets() []int
- func (s UpdateCategoryReq) MarshalJSON() ([]byte, error)
- func (s *UpdateCategoryReq) SetName(val OptString)
- func (s *UpdateCategoryReq) SetPets(val []int)
- func (s *UpdateCategoryReq) UnmarshalJSON(data []byte) error
- type UpdateCategoryRes
- 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) GetHeight() OptInt
- func (s UpdatePetReq) GetName() OptString
- func (s UpdatePetReq) GetOwner() OptInt
- func (s UpdatePetReq) GetTagID() []byte
- 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) SetFriends(val []int)
- func (s *UpdatePetReq) SetHeight(val OptInt)
- func (s *UpdatePetReq) SetName(val OptString)
- func (s *UpdatePetReq) SetOwner(val OptInt)
- func (s *UpdatePetReq) SetTagID(val []byte)
- func (s *UpdatePetReq) SetWeight(val OptInt)
- func (s *UpdatePetReq) UnmarshalJSON(data []byte) error
- type UpdatePetRes
- type UpdateUserParams
- type UpdateUserReq
- func (s *UpdateUserReq) Decode(d *jx.Decoder) error
- func (s UpdateUserReq) Encode(e *jx.Encoder)
- func (s UpdateUserReq) GetAge() OptInt64
- func (s UpdateUserReq) GetBestFriend() OptInt
- func (s UpdateUserReq) GetFavoriteCatBreed() OptUpdateUserReqFavoriteCatBreed
- func (s UpdateUserReq) GetFavoriteDogBreed() OptUpdateUserReqFavoriteDogBreed
- func (s UpdateUserReq) GetFavoriteFishBreed() OptUpdateUserReqFavoriteFishBreed
- func (s UpdateUserReq) GetHeight() OptInt64
- func (s UpdateUserReq) GetName() OptString
- func (s UpdateUserReq) GetPets() []int
- func (s UpdateUserReq) MarshalJSON() ([]byte, error)
- func (s *UpdateUserReq) SetAge(val OptInt64)
- func (s *UpdateUserReq) SetBestFriend(val OptInt)
- func (s *UpdateUserReq) SetFavoriteCatBreed(val OptUpdateUserReqFavoriteCatBreed)
- func (s *UpdateUserReq) SetFavoriteDogBreed(val OptUpdateUserReqFavoriteDogBreed)
- func (s *UpdateUserReq) SetFavoriteFishBreed(val OptUpdateUserReqFavoriteFishBreed)
- func (s *UpdateUserReq) SetHeight(val OptInt64)
- func (s *UpdateUserReq) SetName(val OptString)
- func (s *UpdateUserReq) SetPets(val []int)
- func (s *UpdateUserReq) UnmarshalJSON(data []byte) error
- func (s UpdateUserReq) Validate() error
- type UpdateUserReqFavoriteCatBreed
- func (s *UpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *UpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s UpdateUserReqFavoriteCatBreed) Validate() error
- type UpdateUserReqFavoriteDogBreed
- func (s *UpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *UpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s UpdateUserReqFavoriteDogBreed) Validate() error
- type UpdateUserReqFavoriteFishBreed
- func (s *UpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *UpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s UpdateUserReqFavoriteFishBreed) Validate() error
- type UpdateUserRes
- type UserBestFriendRead
- func (s *UserBestFriendRead) Decode(d *jx.Decoder) error
- func (u *UserBestFriendRead) Elem() UserBestFriendRead
- func (s UserBestFriendRead) Encode(e *jx.Encoder)
- func (s UserBestFriendRead) GetAge() int64
- func (s UserBestFriendRead) GetFavoriteCatBreed() UserBestFriendReadFavoriteCatBreed
- func (s UserBestFriendRead) GetFavoriteDogBreed() OptUserBestFriendReadFavoriteDogBreed
- func (s UserBestFriendRead) GetFavoriteFishBreed() OptUserBestFriendReadFavoriteFishBreed
- func (s UserBestFriendRead) GetHeight() OptInt64
- func (s UserBestFriendRead) GetID() int
- func (s UserBestFriendRead) GetName() string
- func (s UserBestFriendRead) MarshalJSON() ([]byte, error)
- func (s *UserBestFriendRead) SetAge(val int64)
- func (s *UserBestFriendRead) SetFavoriteCatBreed(val UserBestFriendReadFavoriteCatBreed)
- func (s *UserBestFriendRead) SetFavoriteDogBreed(val OptUserBestFriendReadFavoriteDogBreed)
- func (s *UserBestFriendRead) SetFavoriteFishBreed(val OptUserBestFriendReadFavoriteFishBreed)
- func (s *UserBestFriendRead) SetHeight(val OptInt64)
- func (s *UserBestFriendRead) SetID(val int)
- func (s *UserBestFriendRead) SetName(val string)
- func (s *UserBestFriendRead) UnmarshalJSON(data []byte) error
- func (s UserBestFriendRead) Validate() error
- type UserBestFriendReadFavoriteCatBreed
- func (s *UserBestFriendReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *UserBestFriendReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s UserBestFriendReadFavoriteCatBreed) Validate() error
- type UserBestFriendReadFavoriteDogBreed
- func (s *UserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *UserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s UserBestFriendReadFavoriteDogBreed) Validate() error
- type UserBestFriendReadFavoriteFishBreed
- func (s *UserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *UserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s UserBestFriendReadFavoriteFishBreed) Validate() error
- type UserCreate
- func (s *UserCreate) Decode(d *jx.Decoder) error
- func (u *UserCreate) Elem() UserCreate
- func (s UserCreate) Encode(e *jx.Encoder)
- func (s UserCreate) GetAge() int64
- func (s UserCreate) GetFavoriteCatBreed() UserCreateFavoriteCatBreed
- func (s UserCreate) GetFavoriteDogBreed() OptUserCreateFavoriteDogBreed
- func (s UserCreate) GetFavoriteFishBreed() OptUserCreateFavoriteFishBreed
- func (s UserCreate) GetHeight() OptInt64
- func (s UserCreate) GetID() int
- func (s UserCreate) GetName() string
- func (s UserCreate) MarshalJSON() ([]byte, error)
- func (s *UserCreate) SetAge(val int64)
- func (s *UserCreate) SetFavoriteCatBreed(val UserCreateFavoriteCatBreed)
- func (s *UserCreate) SetFavoriteDogBreed(val OptUserCreateFavoriteDogBreed)
- func (s *UserCreate) SetFavoriteFishBreed(val OptUserCreateFavoriteFishBreed)
- func (s *UserCreate) SetHeight(val OptInt64)
- func (s *UserCreate) SetID(val int)
- func (s *UserCreate) SetName(val string)
- func (s *UserCreate) UnmarshalJSON(data []byte) error
- func (s UserCreate) Validate() error
- type UserCreateFavoriteCatBreed
- func (s *UserCreateFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *UserCreateFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s UserCreateFavoriteCatBreed) Validate() error
- type UserCreateFavoriteDogBreed
- func (s *UserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *UserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s UserCreateFavoriteDogBreed) Validate() error
- type UserCreateFavoriteFishBreed
- func (s *UserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *UserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s UserCreateFavoriteFishBreed) Validate() error
- type UserList
- func (s *UserList) Decode(d *jx.Decoder) error
- func (u *UserList) Elem() UserList
- func (s UserList) Encode(e *jx.Encoder)
- func (s UserList) GetAge() int64
- func (s UserList) GetFavoriteCatBreed() UserListFavoriteCatBreed
- func (s UserList) GetFavoriteDogBreed() OptUserListFavoriteDogBreed
- func (s UserList) GetFavoriteFishBreed() OptUserListFavoriteFishBreed
- func (s UserList) GetHeight() OptInt64
- func (s UserList) GetID() int
- func (s UserList) GetName() string
- func (s UserList) MarshalJSON() ([]byte, error)
- func (s *UserList) SetAge(val int64)
- func (s *UserList) SetFavoriteCatBreed(val UserListFavoriteCatBreed)
- func (s *UserList) SetFavoriteDogBreed(val OptUserListFavoriteDogBreed)
- func (s *UserList) SetFavoriteFishBreed(val OptUserListFavoriteFishBreed)
- func (s *UserList) SetHeight(val OptInt64)
- func (s *UserList) SetID(val int)
- func (s *UserList) SetName(val string)
- func (s *UserList) UnmarshalJSON(data []byte) error
- func (s UserList) Validate() error
- type UserListFavoriteCatBreed
- func (s *UserListFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserListFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserListFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *UserListFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s UserListFavoriteCatBreed) Validate() error
- type UserListFavoriteDogBreed
- func (s *UserListFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserListFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *UserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s UserListFavoriteDogBreed) Validate() error
- type UserListFavoriteFishBreed
- func (s *UserListFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserListFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *UserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s UserListFavoriteFishBreed) Validate() error
- type UserPetsList
- func (s *UserPetsList) Decode(d *jx.Decoder) error
- func (pe *UserPetsList) Elem() UserPetsList
- func (s UserPetsList) Encode(e *jx.Encoder)
- func (s UserPetsList) GetBirthday() OptDateTime
- func (s UserPetsList) GetHeight() OptInt
- func (s UserPetsList) GetID() int
- func (s UserPetsList) GetName() string
- func (s UserPetsList) GetTagID() []byte
- func (s UserPetsList) GetWeight() OptInt
- func (s UserPetsList) MarshalJSON() ([]byte, error)
- func (s *UserPetsList) SetBirthday(val OptDateTime)
- func (s *UserPetsList) SetHeight(val OptInt)
- func (s *UserPetsList) SetID(val int)
- func (s *UserPetsList) SetName(val string)
- func (s *UserPetsList) SetTagID(val []byte)
- func (s *UserPetsList) SetWeight(val OptInt)
- func (s *UserPetsList) UnmarshalJSON(data []byte) error
- type UserRead
- func (s *UserRead) Decode(d *jx.Decoder) error
- func (u *UserRead) Elem() UserRead
- func (s UserRead) Encode(e *jx.Encoder)
- func (s UserRead) GetAge() int64
- func (s UserRead) GetFavoriteCatBreed() UserReadFavoriteCatBreed
- func (s UserRead) GetFavoriteDogBreed() OptUserReadFavoriteDogBreed
- func (s UserRead) GetFavoriteFishBreed() OptUserReadFavoriteFishBreed
- func (s UserRead) GetHeight() OptInt64
- func (s UserRead) GetID() int
- func (s UserRead) GetName() string
- func (s UserRead) MarshalJSON() ([]byte, error)
- func (s *UserRead) SetAge(val int64)
- func (s *UserRead) SetFavoriteCatBreed(val UserReadFavoriteCatBreed)
- func (s *UserRead) SetFavoriteDogBreed(val OptUserReadFavoriteDogBreed)
- func (s *UserRead) SetFavoriteFishBreed(val OptUserReadFavoriteFishBreed)
- func (s *UserRead) SetHeight(val OptInt64)
- func (s *UserRead) SetID(val int)
- func (s *UserRead) SetName(val string)
- func (s *UserRead) UnmarshalJSON(data []byte) error
- func (s UserRead) Validate() error
- type UserReadFavoriteCatBreed
- func (s *UserReadFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *UserReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s UserReadFavoriteCatBreed) Validate() error
- type UserReadFavoriteDogBreed
- func (s *UserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *UserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s UserReadFavoriteDogBreed) Validate() error
- type UserReadFavoriteFishBreed
- func (s *UserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserReadFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *UserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s UserReadFavoriteFishBreed) Validate() error
- type UserUpdate
- func (s *UserUpdate) Decode(d *jx.Decoder) error
- func (u *UserUpdate) Elem() UserUpdate
- func (s UserUpdate) Encode(e *jx.Encoder)
- func (s UserUpdate) GetAge() int64
- func (s UserUpdate) GetFavoriteCatBreed() UserUpdateFavoriteCatBreed
- func (s UserUpdate) GetFavoriteDogBreed() OptUserUpdateFavoriteDogBreed
- func (s UserUpdate) GetFavoriteFishBreed() OptUserUpdateFavoriteFishBreed
- func (s UserUpdate) GetHeight() OptInt64
- func (s UserUpdate) GetID() int
- func (s UserUpdate) GetName() string
- func (s UserUpdate) MarshalJSON() ([]byte, error)
- func (s *UserUpdate) SetAge(val int64)
- func (s *UserUpdate) SetFavoriteCatBreed(val UserUpdateFavoriteCatBreed)
- func (s *UserUpdate) SetFavoriteDogBreed(val OptUserUpdateFavoriteDogBreed)
- func (s *UserUpdate) SetFavoriteFishBreed(val OptUserUpdateFavoriteFishBreed)
- func (s *UserUpdate) SetHeight(val OptInt64)
- func (s *UserUpdate) SetID(val int)
- func (s *UserUpdate) SetName(val string)
- func (s *UserUpdate) UnmarshalJSON(data []byte) error
- func (s UserUpdate) Validate() error
- type UserUpdateFavoriteCatBreed
- func (s *UserUpdateFavoriteCatBreed) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteCatBreed) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteCatBreed) MarshalJSON() ([]byte, error)
- func (s *UserUpdateFavoriteCatBreed) UnmarshalJSON(data []byte) error
- func (s UserUpdateFavoriteCatBreed) Validate() error
- type UserUpdateFavoriteDogBreed
- func (s *UserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
- func (s *UserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
- func (s UserUpdateFavoriteDogBreed) Validate() error
- type UserUpdateFavoriteFishBreed
- func (s *UserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
- func (s UserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
- func (s UserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
- func (s *UserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
- func (s UserUpdateFavoriteFishBreed) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllTypesCreate ¶
type AllTypesCreate struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesCreateState `json:"state"` Bytes []byte `json:"bytes"` }
Ref: #/components/schemas/AllTypesCreate
func NewAllTypesCreate ¶
func NewAllTypesCreate(e *ent.AllTypes) *AllTypesCreate
func NewAllTypesCreates ¶
func NewAllTypesCreates(es []*ent.AllTypes) []AllTypesCreate
func (*AllTypesCreate) Decode ¶
func (s *AllTypesCreate) Decode(d *jx.Decoder) error
Decode decodes AllTypesCreate from json.
func (*AllTypesCreate) Elem ¶
func (at *AllTypesCreate) Elem() AllTypesCreate
func (AllTypesCreate) Encode ¶
func (s AllTypesCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AllTypesCreate) GetBool ¶
func (s AllTypesCreate) GetBool() bool
GetBool returns the value of Bool.
func (AllTypesCreate) GetBytes ¶
func (s AllTypesCreate) GetBytes() []byte
GetBytes returns the value of Bytes.
func (AllTypesCreate) GetFloat32 ¶
func (s AllTypesCreate) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (AllTypesCreate) GetFloat64 ¶
func (s AllTypesCreate) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (AllTypesCreate) GetInt ¶
func (s AllTypesCreate) GetInt() int
GetInt returns the value of Int.
func (AllTypesCreate) GetInt16 ¶
func (s AllTypesCreate) GetInt16() int32
GetInt16 returns the value of Int16.
func (AllTypesCreate) GetInt32 ¶
func (s AllTypesCreate) GetInt32() int32
GetInt32 returns the value of Int32.
func (AllTypesCreate) GetInt64 ¶
func (s AllTypesCreate) GetInt64() int64
GetInt64 returns the value of Int64.
func (AllTypesCreate) GetInt8 ¶
func (s AllTypesCreate) GetInt8() int32
GetInt8 returns the value of Int8.
func (AllTypesCreate) GetState ¶
func (s AllTypesCreate) GetState() AllTypesCreateState
GetState returns the value of State.
func (AllTypesCreate) GetStringType ¶
func (s AllTypesCreate) GetStringType() string
GetStringType returns the value of StringType.
func (AllTypesCreate) GetText ¶
func (s AllTypesCreate) GetText() string
GetText returns the value of Text.
func (AllTypesCreate) GetTime ¶
func (s AllTypesCreate) GetTime() time.Time
GetTime returns the value of Time.
func (AllTypesCreate) GetUUID ¶
func (s AllTypesCreate) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (AllTypesCreate) GetUint ¶
func (s AllTypesCreate) GetUint() int64
GetUint returns the value of Uint.
func (AllTypesCreate) GetUint16 ¶
func (s AllTypesCreate) GetUint16() int32
GetUint16 returns the value of Uint16.
func (AllTypesCreate) GetUint32 ¶
func (s AllTypesCreate) GetUint32() int64
GetUint32 returns the value of Uint32.
func (AllTypesCreate) GetUint64 ¶
func (s AllTypesCreate) GetUint64() int64
GetUint64 returns the value of Uint64.
func (AllTypesCreate) GetUint8 ¶
func (s AllTypesCreate) GetUint8() int32
GetUint8 returns the value of Uint8.
func (AllTypesCreate) MarshalJSON ¶
func (s AllTypesCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesCreate) SetBool ¶
func (s *AllTypesCreate) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesCreate) SetBytes ¶
func (s *AllTypesCreate) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesCreate) SetFloat32 ¶
func (s *AllTypesCreate) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesCreate) SetFloat64 ¶
func (s *AllTypesCreate) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesCreate) SetID ¶
func (s *AllTypesCreate) SetID(val int64)
SetID sets the value of ID.
func (*AllTypesCreate) SetInt ¶
func (s *AllTypesCreate) SetInt(val int)
SetInt sets the value of Int.
func (*AllTypesCreate) SetInt16 ¶
func (s *AllTypesCreate) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesCreate) SetInt32 ¶
func (s *AllTypesCreate) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesCreate) SetInt64 ¶
func (s *AllTypesCreate) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesCreate) SetInt8 ¶
func (s *AllTypesCreate) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesCreate) SetState ¶
func (s *AllTypesCreate) SetState(val AllTypesCreateState)
SetState sets the value of State.
func (*AllTypesCreate) SetStringType ¶
func (s *AllTypesCreate) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesCreate) SetText ¶
func (s *AllTypesCreate) SetText(val string)
SetText sets the value of Text.
func (*AllTypesCreate) SetTime ¶
func (s *AllTypesCreate) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesCreate) SetUUID ¶
func (s *AllTypesCreate) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesCreate) SetUint ¶
func (s *AllTypesCreate) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesCreate) SetUint16 ¶
func (s *AllTypesCreate) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesCreate) SetUint32 ¶
func (s *AllTypesCreate) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesCreate) SetUint64 ¶
func (s *AllTypesCreate) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesCreate) SetUint8 ¶
func (s *AllTypesCreate) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesCreate) UnmarshalJSON ¶
func (s *AllTypesCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesCreate) Validate ¶
func (s AllTypesCreate) Validate() error
type AllTypesCreateState ¶
type AllTypesCreateState string
const ( AllTypesCreateStateOn AllTypesCreateState = "on" AllTypesCreateStateOff AllTypesCreateState = "off" )
func (*AllTypesCreateState) Decode ¶
func (s *AllTypesCreateState) Decode(d *jx.Decoder) error
Decode decodes AllTypesCreateState from json.
func (AllTypesCreateState) Encode ¶
func (s AllTypesCreateState) Encode(e *jx.Encoder)
Encode encodes AllTypesCreateState as json.
func (AllTypesCreateState) MarshalJSON ¶
func (s AllTypesCreateState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesCreateState) UnmarshalJSON ¶
func (s *AllTypesCreateState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesCreateState) Validate ¶
func (s AllTypesCreateState) Validate() error
type AllTypesList ¶
type AllTypesList struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesListState `json:"state"` Bytes []byte `json:"bytes"` }
Ref: #/components/schemas/AllTypesList
func NewAllTypesList ¶
func NewAllTypesList(e *ent.AllTypes) *AllTypesList
func NewAllTypesLists ¶
func NewAllTypesLists(es []*ent.AllTypes) []AllTypesList
func (*AllTypesList) Decode ¶
func (s *AllTypesList) Decode(d *jx.Decoder) error
Decode decodes AllTypesList from json.
func (*AllTypesList) Elem ¶
func (at *AllTypesList) Elem() AllTypesList
func (AllTypesList) Encode ¶
func (s AllTypesList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AllTypesList) GetBool ¶
func (s AllTypesList) GetBool() bool
GetBool returns the value of Bool.
func (AllTypesList) GetBytes ¶
func (s AllTypesList) GetBytes() []byte
GetBytes returns the value of Bytes.
func (AllTypesList) GetFloat32 ¶
func (s AllTypesList) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (AllTypesList) GetFloat64 ¶
func (s AllTypesList) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (AllTypesList) GetInt16 ¶
func (s AllTypesList) GetInt16() int32
GetInt16 returns the value of Int16.
func (AllTypesList) GetInt32 ¶
func (s AllTypesList) GetInt32() int32
GetInt32 returns the value of Int32.
func (AllTypesList) GetInt64 ¶
func (s AllTypesList) GetInt64() int64
GetInt64 returns the value of Int64.
func (AllTypesList) GetInt8 ¶
func (s AllTypesList) GetInt8() int32
GetInt8 returns the value of Int8.
func (AllTypesList) GetState ¶
func (s AllTypesList) GetState() AllTypesListState
GetState returns the value of State.
func (AllTypesList) GetStringType ¶
func (s AllTypesList) GetStringType() string
GetStringType returns the value of StringType.
func (AllTypesList) GetText ¶
func (s AllTypesList) GetText() string
GetText returns the value of Text.
func (AllTypesList) GetTime ¶
func (s AllTypesList) GetTime() time.Time
GetTime returns the value of Time.
func (AllTypesList) GetUUID ¶
func (s AllTypesList) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (AllTypesList) GetUint ¶
func (s AllTypesList) GetUint() int64
GetUint returns the value of Uint.
func (AllTypesList) GetUint16 ¶
func (s AllTypesList) GetUint16() int32
GetUint16 returns the value of Uint16.
func (AllTypesList) GetUint32 ¶
func (s AllTypesList) GetUint32() int64
GetUint32 returns the value of Uint32.
func (AllTypesList) GetUint64 ¶
func (s AllTypesList) GetUint64() int64
GetUint64 returns the value of Uint64.
func (AllTypesList) GetUint8 ¶
func (s AllTypesList) GetUint8() int32
GetUint8 returns the value of Uint8.
func (AllTypesList) MarshalJSON ¶
func (s AllTypesList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesList) SetBool ¶
func (s *AllTypesList) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesList) SetBytes ¶
func (s *AllTypesList) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesList) SetFloat32 ¶
func (s *AllTypesList) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesList) SetFloat64 ¶
func (s *AllTypesList) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesList) SetInt16 ¶
func (s *AllTypesList) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesList) SetInt32 ¶
func (s *AllTypesList) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesList) SetInt64 ¶
func (s *AllTypesList) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesList) SetInt8 ¶
func (s *AllTypesList) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesList) SetState ¶
func (s *AllTypesList) SetState(val AllTypesListState)
SetState sets the value of State.
func (*AllTypesList) SetStringType ¶
func (s *AllTypesList) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesList) SetText ¶
func (s *AllTypesList) SetText(val string)
SetText sets the value of Text.
func (*AllTypesList) SetTime ¶
func (s *AllTypesList) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesList) SetUUID ¶
func (s *AllTypesList) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesList) SetUint ¶
func (s *AllTypesList) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesList) SetUint16 ¶
func (s *AllTypesList) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesList) SetUint32 ¶
func (s *AllTypesList) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesList) SetUint64 ¶
func (s *AllTypesList) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesList) SetUint8 ¶
func (s *AllTypesList) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesList) UnmarshalJSON ¶
func (s *AllTypesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesList) Validate ¶
func (s AllTypesList) Validate() error
type AllTypesListState ¶
type AllTypesListState string
const ( AllTypesListStateOn AllTypesListState = "on" AllTypesListStateOff AllTypesListState = "off" )
func (*AllTypesListState) Decode ¶
func (s *AllTypesListState) Decode(d *jx.Decoder) error
Decode decodes AllTypesListState from json.
func (AllTypesListState) Encode ¶
func (s AllTypesListState) Encode(e *jx.Encoder)
Encode encodes AllTypesListState as json.
func (AllTypesListState) MarshalJSON ¶
func (s AllTypesListState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesListState) UnmarshalJSON ¶
func (s *AllTypesListState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesListState) Validate ¶
func (s AllTypesListState) Validate() error
type AllTypesRead ¶
type AllTypesRead struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesReadState `json:"state"` Bytes []byte `json:"bytes"` }
Ref: #/components/schemas/AllTypesRead
func NewAllTypesRead ¶
func NewAllTypesRead(e *ent.AllTypes) *AllTypesRead
func NewAllTypesReads ¶
func NewAllTypesReads(es []*ent.AllTypes) []AllTypesRead
func (*AllTypesRead) Decode ¶
func (s *AllTypesRead) Decode(d *jx.Decoder) error
Decode decodes AllTypesRead from json.
func (*AllTypesRead) Elem ¶
func (at *AllTypesRead) Elem() AllTypesRead
func (AllTypesRead) Encode ¶
func (s AllTypesRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AllTypesRead) GetBool ¶
func (s AllTypesRead) GetBool() bool
GetBool returns the value of Bool.
func (AllTypesRead) GetBytes ¶
func (s AllTypesRead) GetBytes() []byte
GetBytes returns the value of Bytes.
func (AllTypesRead) GetFloat32 ¶
func (s AllTypesRead) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (AllTypesRead) GetFloat64 ¶
func (s AllTypesRead) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (AllTypesRead) GetInt16 ¶
func (s AllTypesRead) GetInt16() int32
GetInt16 returns the value of Int16.
func (AllTypesRead) GetInt32 ¶
func (s AllTypesRead) GetInt32() int32
GetInt32 returns the value of Int32.
func (AllTypesRead) GetInt64 ¶
func (s AllTypesRead) GetInt64() int64
GetInt64 returns the value of Int64.
func (AllTypesRead) GetInt8 ¶
func (s AllTypesRead) GetInt8() int32
GetInt8 returns the value of Int8.
func (AllTypesRead) GetState ¶
func (s AllTypesRead) GetState() AllTypesReadState
GetState returns the value of State.
func (AllTypesRead) GetStringType ¶
func (s AllTypesRead) GetStringType() string
GetStringType returns the value of StringType.
func (AllTypesRead) GetText ¶
func (s AllTypesRead) GetText() string
GetText returns the value of Text.
func (AllTypesRead) GetTime ¶
func (s AllTypesRead) GetTime() time.Time
GetTime returns the value of Time.
func (AllTypesRead) GetUUID ¶
func (s AllTypesRead) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (AllTypesRead) GetUint ¶
func (s AllTypesRead) GetUint() int64
GetUint returns the value of Uint.
func (AllTypesRead) GetUint16 ¶
func (s AllTypesRead) GetUint16() int32
GetUint16 returns the value of Uint16.
func (AllTypesRead) GetUint32 ¶
func (s AllTypesRead) GetUint32() int64
GetUint32 returns the value of Uint32.
func (AllTypesRead) GetUint64 ¶
func (s AllTypesRead) GetUint64() int64
GetUint64 returns the value of Uint64.
func (AllTypesRead) GetUint8 ¶
func (s AllTypesRead) GetUint8() int32
GetUint8 returns the value of Uint8.
func (AllTypesRead) MarshalJSON ¶
func (s AllTypesRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesRead) SetBool ¶
func (s *AllTypesRead) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesRead) SetBytes ¶
func (s *AllTypesRead) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesRead) SetFloat32 ¶
func (s *AllTypesRead) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesRead) SetFloat64 ¶
func (s *AllTypesRead) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesRead) SetInt16 ¶
func (s *AllTypesRead) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesRead) SetInt32 ¶
func (s *AllTypesRead) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesRead) SetInt64 ¶
func (s *AllTypesRead) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesRead) SetInt8 ¶
func (s *AllTypesRead) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesRead) SetState ¶
func (s *AllTypesRead) SetState(val AllTypesReadState)
SetState sets the value of State.
func (*AllTypesRead) SetStringType ¶
func (s *AllTypesRead) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesRead) SetText ¶
func (s *AllTypesRead) SetText(val string)
SetText sets the value of Text.
func (*AllTypesRead) SetTime ¶
func (s *AllTypesRead) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesRead) SetUUID ¶
func (s *AllTypesRead) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesRead) SetUint ¶
func (s *AllTypesRead) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesRead) SetUint16 ¶
func (s *AllTypesRead) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesRead) SetUint32 ¶
func (s *AllTypesRead) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesRead) SetUint64 ¶
func (s *AllTypesRead) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesRead) SetUint8 ¶
func (s *AllTypesRead) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesRead) UnmarshalJSON ¶
func (s *AllTypesRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesRead) Validate ¶
func (s AllTypesRead) Validate() error
type AllTypesReadState ¶
type AllTypesReadState string
const ( AllTypesReadStateOn AllTypesReadState = "on" AllTypesReadStateOff AllTypesReadState = "off" )
func (*AllTypesReadState) Decode ¶
func (s *AllTypesReadState) Decode(d *jx.Decoder) error
Decode decodes AllTypesReadState from json.
func (AllTypesReadState) Encode ¶
func (s AllTypesReadState) Encode(e *jx.Encoder)
Encode encodes AllTypesReadState as json.
func (AllTypesReadState) MarshalJSON ¶
func (s AllTypesReadState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesReadState) UnmarshalJSON ¶
func (s *AllTypesReadState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesReadState) Validate ¶
func (s AllTypesReadState) Validate() error
type AllTypesUpdate ¶
type AllTypesUpdate struct { ID int64 `json:"id"` Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State AllTypesUpdateState `json:"state"` Bytes []byte `json:"bytes"` }
Ref: #/components/schemas/AllTypesUpdate
func NewAllTypesUpdate ¶
func NewAllTypesUpdate(e *ent.AllTypes) *AllTypesUpdate
func NewAllTypesUpdates ¶
func NewAllTypesUpdates(es []*ent.AllTypes) []AllTypesUpdate
func (*AllTypesUpdate) Decode ¶
func (s *AllTypesUpdate) Decode(d *jx.Decoder) error
Decode decodes AllTypesUpdate from json.
func (*AllTypesUpdate) Elem ¶
func (at *AllTypesUpdate) Elem() AllTypesUpdate
func (AllTypesUpdate) Encode ¶
func (s AllTypesUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AllTypesUpdate) GetBool ¶
func (s AllTypesUpdate) GetBool() bool
GetBool returns the value of Bool.
func (AllTypesUpdate) GetBytes ¶
func (s AllTypesUpdate) GetBytes() []byte
GetBytes returns the value of Bytes.
func (AllTypesUpdate) GetFloat32 ¶
func (s AllTypesUpdate) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (AllTypesUpdate) GetFloat64 ¶
func (s AllTypesUpdate) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (AllTypesUpdate) GetInt ¶
func (s AllTypesUpdate) GetInt() int
GetInt returns the value of Int.
func (AllTypesUpdate) GetInt16 ¶
func (s AllTypesUpdate) GetInt16() int32
GetInt16 returns the value of Int16.
func (AllTypesUpdate) GetInt32 ¶
func (s AllTypesUpdate) GetInt32() int32
GetInt32 returns the value of Int32.
func (AllTypesUpdate) GetInt64 ¶
func (s AllTypesUpdate) GetInt64() int64
GetInt64 returns the value of Int64.
func (AllTypesUpdate) GetInt8 ¶
func (s AllTypesUpdate) GetInt8() int32
GetInt8 returns the value of Int8.
func (AllTypesUpdate) GetState ¶
func (s AllTypesUpdate) GetState() AllTypesUpdateState
GetState returns the value of State.
func (AllTypesUpdate) GetStringType ¶
func (s AllTypesUpdate) GetStringType() string
GetStringType returns the value of StringType.
func (AllTypesUpdate) GetText ¶
func (s AllTypesUpdate) GetText() string
GetText returns the value of Text.
func (AllTypesUpdate) GetTime ¶
func (s AllTypesUpdate) GetTime() time.Time
GetTime returns the value of Time.
func (AllTypesUpdate) GetUUID ¶
func (s AllTypesUpdate) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (AllTypesUpdate) GetUint ¶
func (s AllTypesUpdate) GetUint() int64
GetUint returns the value of Uint.
func (AllTypesUpdate) GetUint16 ¶
func (s AllTypesUpdate) GetUint16() int32
GetUint16 returns the value of Uint16.
func (AllTypesUpdate) GetUint32 ¶
func (s AllTypesUpdate) GetUint32() int64
GetUint32 returns the value of Uint32.
func (AllTypesUpdate) GetUint64 ¶
func (s AllTypesUpdate) GetUint64() int64
GetUint64 returns the value of Uint64.
func (AllTypesUpdate) GetUint8 ¶
func (s AllTypesUpdate) GetUint8() int32
GetUint8 returns the value of Uint8.
func (AllTypesUpdate) MarshalJSON ¶
func (s AllTypesUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesUpdate) SetBool ¶
func (s *AllTypesUpdate) SetBool(val bool)
SetBool sets the value of Bool.
func (*AllTypesUpdate) SetBytes ¶
func (s *AllTypesUpdate) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*AllTypesUpdate) SetFloat32 ¶
func (s *AllTypesUpdate) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*AllTypesUpdate) SetFloat64 ¶
func (s *AllTypesUpdate) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*AllTypesUpdate) SetID ¶
func (s *AllTypesUpdate) SetID(val int64)
SetID sets the value of ID.
func (*AllTypesUpdate) SetInt ¶
func (s *AllTypesUpdate) SetInt(val int)
SetInt sets the value of Int.
func (*AllTypesUpdate) SetInt16 ¶
func (s *AllTypesUpdate) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*AllTypesUpdate) SetInt32 ¶
func (s *AllTypesUpdate) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*AllTypesUpdate) SetInt64 ¶
func (s *AllTypesUpdate) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*AllTypesUpdate) SetInt8 ¶
func (s *AllTypesUpdate) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*AllTypesUpdate) SetState ¶
func (s *AllTypesUpdate) SetState(val AllTypesUpdateState)
SetState sets the value of State.
func (*AllTypesUpdate) SetStringType ¶
func (s *AllTypesUpdate) SetStringType(val string)
SetStringType sets the value of StringType.
func (*AllTypesUpdate) SetText ¶
func (s *AllTypesUpdate) SetText(val string)
SetText sets the value of Text.
func (*AllTypesUpdate) SetTime ¶
func (s *AllTypesUpdate) SetTime(val time.Time)
SetTime sets the value of Time.
func (*AllTypesUpdate) SetUUID ¶
func (s *AllTypesUpdate) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*AllTypesUpdate) SetUint ¶
func (s *AllTypesUpdate) SetUint(val int64)
SetUint sets the value of Uint.
func (*AllTypesUpdate) SetUint16 ¶
func (s *AllTypesUpdate) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*AllTypesUpdate) SetUint32 ¶
func (s *AllTypesUpdate) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*AllTypesUpdate) SetUint64 ¶
func (s *AllTypesUpdate) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*AllTypesUpdate) SetUint8 ¶
func (s *AllTypesUpdate) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*AllTypesUpdate) UnmarshalJSON ¶
func (s *AllTypesUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesUpdate) Validate ¶
func (s AllTypesUpdate) Validate() error
type AllTypesUpdateState ¶
type AllTypesUpdateState string
const ( AllTypesUpdateStateOn AllTypesUpdateState = "on" AllTypesUpdateStateOff AllTypesUpdateState = "off" )
func (*AllTypesUpdateState) Decode ¶
func (s *AllTypesUpdateState) Decode(d *jx.Decoder) error
Decode decodes AllTypesUpdateState from json.
func (AllTypesUpdateState) Encode ¶
func (s AllTypesUpdateState) Encode(e *jx.Encoder)
Encode encodes AllTypesUpdateState as json.
func (AllTypesUpdateState) MarshalJSON ¶
func (s AllTypesUpdateState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AllTypesUpdateState) UnmarshalJSON ¶
func (s *AllTypesUpdateState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (AllTypesUpdateState) Validate ¶
func (s AllTypesUpdateState) Validate() error
type CategoryCreate ¶
type CategoryCreate struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryCreate
func NewCategoryCreate ¶
func NewCategoryCreate(e *ent.Category) *CategoryCreate
func NewCategoryCreates ¶
func NewCategoryCreates(es []*ent.Category) []CategoryCreate
func (*CategoryCreate) Decode ¶
func (s *CategoryCreate) Decode(d *jx.Decoder) error
Decode decodes CategoryCreate from json.
func (*CategoryCreate) Elem ¶
func (c *CategoryCreate) Elem() CategoryCreate
func (CategoryCreate) Encode ¶
func (s CategoryCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CategoryCreate) GetName ¶
func (s CategoryCreate) GetName() string
GetName returns the value of Name.
func (CategoryCreate) GetReadonly ¶
func (s CategoryCreate) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (CategoryCreate) MarshalJSON ¶
func (s CategoryCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryCreate) SetName ¶
func (s *CategoryCreate) SetName(val string)
SetName sets the value of Name.
func (*CategoryCreate) SetReadonly ¶
func (s *CategoryCreate) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryCreate) UnmarshalJSON ¶
func (s *CategoryCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryList ¶
type CategoryList struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryList
func NewCategoryList ¶
func NewCategoryList(e *ent.Category) *CategoryList
func NewCategoryLists ¶
func NewCategoryLists(es []*ent.Category) []CategoryList
func (*CategoryList) Decode ¶
func (s *CategoryList) Decode(d *jx.Decoder) error
Decode decodes CategoryList from json.
func (*CategoryList) Elem ¶
func (c *CategoryList) Elem() CategoryList
func (CategoryList) Encode ¶
func (s CategoryList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CategoryList) GetName ¶
func (s CategoryList) GetName() string
GetName returns the value of Name.
func (CategoryList) GetReadonly ¶
func (s CategoryList) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (CategoryList) MarshalJSON ¶
func (s CategoryList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryList) SetName ¶
func (s *CategoryList) SetName(val string)
SetName sets the value of Name.
func (*CategoryList) SetReadonly ¶
func (s *CategoryList) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryList) UnmarshalJSON ¶
func (s *CategoryList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryPetsList ¶
type CategoryPetsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/Category_PetsList
func NewCategoryPetsList ¶
func NewCategoryPetsList(e *ent.Pet) *CategoryPetsList
func NewCategoryPetsLists ¶
func NewCategoryPetsLists(es []*ent.Pet) []CategoryPetsList
func (*CategoryPetsList) Decode ¶
func (s *CategoryPetsList) Decode(d *jx.Decoder) error
Decode decodes CategoryPetsList from json.
func (*CategoryPetsList) Elem ¶
func (pe *CategoryPetsList) Elem() CategoryPetsList
func (CategoryPetsList) Encode ¶
func (s CategoryPetsList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CategoryPetsList) GetBirthday ¶
func (s CategoryPetsList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (CategoryPetsList) GetHeight ¶
func (s CategoryPetsList) GetHeight() OptInt
GetHeight returns the value of Height.
func (CategoryPetsList) GetID ¶
func (s CategoryPetsList) GetID() int
GetID returns the value of ID.
func (CategoryPetsList) GetName ¶
func (s CategoryPetsList) GetName() string
GetName returns the value of Name.
func (CategoryPetsList) GetTagID ¶
func (s CategoryPetsList) GetTagID() []byte
GetTagID returns the value of TagID.
func (CategoryPetsList) GetWeight ¶
func (s CategoryPetsList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (CategoryPetsList) MarshalJSON ¶
func (s CategoryPetsList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryPetsList) SetBirthday ¶
func (s *CategoryPetsList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*CategoryPetsList) SetHeight ¶
func (s *CategoryPetsList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*CategoryPetsList) SetID ¶
func (s *CategoryPetsList) SetID(val int)
SetID sets the value of ID.
func (*CategoryPetsList) SetName ¶
func (s *CategoryPetsList) SetName(val string)
SetName sets the value of Name.
func (*CategoryPetsList) SetTagID ¶
func (s *CategoryPetsList) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*CategoryPetsList) SetWeight ¶
func (s *CategoryPetsList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*CategoryPetsList) UnmarshalJSON ¶
func (s *CategoryPetsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryRead ¶
type CategoryRead struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryRead
func NewCategoryRead ¶
func NewCategoryRead(e *ent.Category) *CategoryRead
func NewCategoryReads ¶
func NewCategoryReads(es []*ent.Category) []CategoryRead
func (*CategoryRead) Decode ¶
func (s *CategoryRead) Decode(d *jx.Decoder) error
Decode decodes CategoryRead from json.
func (*CategoryRead) Elem ¶
func (c *CategoryRead) Elem() CategoryRead
func (CategoryRead) Encode ¶
func (s CategoryRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CategoryRead) GetName ¶
func (s CategoryRead) GetName() string
GetName returns the value of Name.
func (CategoryRead) GetReadonly ¶
func (s CategoryRead) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (CategoryRead) MarshalJSON ¶
func (s CategoryRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryRead) SetName ¶
func (s *CategoryRead) SetName(val string)
SetName sets the value of Name.
func (*CategoryRead) SetReadonly ¶
func (s *CategoryRead) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryRead) UnmarshalJSON ¶
func (s *CategoryRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryUpdate ¶
type CategoryUpdate struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/CategoryUpdate
func NewCategoryUpdate ¶
func NewCategoryUpdate(e *ent.Category) *CategoryUpdate
func NewCategoryUpdates ¶
func NewCategoryUpdates(es []*ent.Category) []CategoryUpdate
func (*CategoryUpdate) Decode ¶
func (s *CategoryUpdate) Decode(d *jx.Decoder) error
Decode decodes CategoryUpdate from json.
func (*CategoryUpdate) Elem ¶
func (c *CategoryUpdate) Elem() CategoryUpdate
func (CategoryUpdate) Encode ¶
func (s CategoryUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CategoryUpdate) GetName ¶
func (s CategoryUpdate) GetName() string
GetName returns the value of Name.
func (CategoryUpdate) GetReadonly ¶
func (s CategoryUpdate) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (CategoryUpdate) MarshalJSON ¶
func (s CategoryUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryUpdate) SetName ¶
func (s *CategoryUpdate) SetName(val string)
SetName sets the value of Name.
func (*CategoryUpdate) SetReadonly ¶
func (s *CategoryUpdate) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*CategoryUpdate) UnmarshalJSON ¶
func (s *CategoryUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func (*Client) CreateAllTypes ¶
func (c *Client) CreateAllTypes(ctx context.Context, request CreateAllTypesReq) (res CreateAllTypesRes, err error)
CreateAllTypes invokes createAllTypes operation.
Creates a new AllTypes and persists it to storage.
POST /all-types
func (*Client) CreateCategory ¶
func (c *Client) CreateCategory(ctx context.Context, request CreateCategoryReq) (res CreateCategoryRes, err error)
CreateCategory invokes createCategory operation.
Creates a new Category and persists it to storage.
POST /categories
func (*Client) CreatePet ¶
func (c *Client) CreatePet(ctx context.Context, request CreatePetReq) (res CreatePetRes, err error)
CreatePet invokes createPet operation.
Creates a new Pet and persists it to storage.
POST /pets
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, request CreateUserReq) (res CreateUserRes, err error)
CreateUser invokes createUser operation.
Creates a new User and persists it to storage.
POST /users
func (*Client) DeleteAllTypes ¶
func (c *Client) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (res DeleteAllTypesRes, err error)
DeleteAllTypes invokes deleteAllTypes operation.
Deletes the AllTypes with the requested ID.
DELETE /all-types/{id}
func (*Client) DeleteCategory ¶
func (c *Client) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (res DeleteCategoryRes, err error)
DeleteCategory invokes deleteCategory operation.
Deletes the Category with the requested ID.
DELETE /categories/{id}
func (*Client) DeletePet ¶
func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (res DeletePetRes, err error)
DeletePet invokes deletePet operation.
Deletes the Pet with the requested ID.
DELETE /pets/{id}
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(ctx context.Context, params DeleteUserParams) (res DeleteUserRes, err error)
DeleteUser invokes deleteUser operation.
Deletes the User with the requested ID.
DELETE /users/{id}
func (*Client) ListAllTypes ¶
func (c *Client) ListAllTypes(ctx context.Context, params ListAllTypesParams) (res ListAllTypesRes, err error)
ListAllTypes invokes listAllTypes operation.
List AllTypes.
GET /all-types
func (*Client) ListCategory ¶
func (c *Client) ListCategory(ctx context.Context, params ListCategoryParams) (res ListCategoryRes, err error)
ListCategory invokes listCategory operation.
List Categories.
GET /categories
func (*Client) ListCategoryPets ¶
func (c *Client) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (res ListCategoryPetsRes, err error)
ListCategoryPets invokes listCategoryPets operation.
List attached Pets.
GET /categories/{id}/pets
func (*Client) ListPet ¶
func (c *Client) ListPet(ctx context.Context, params ListPetParams) (res ListPetRes, err error)
ListPet invokes listPet operation.
List Pets.
GET /pets
func (*Client) ListPetCategories ¶
func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (res ListPetCategoriesRes, err error)
ListPetCategories invokes listPetCategories operation.
List attached Categories.
GET /pets/{id}/categories
func (*Client) ListPetFriends ¶
func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (res ListPetFriendsRes, err error)
ListPetFriends invokes listPetFriends operation.
List attached Friends.
GET /pets/{id}/friends
func (*Client) ListUser ¶
func (c *Client) ListUser(ctx context.Context, params ListUserParams) (res ListUserRes, err error)
ListUser invokes listUser operation.
List Users.
GET /users
func (*Client) ListUserPets ¶
func (c *Client) ListUserPets(ctx context.Context, params ListUserPetsParams) (res ListUserPetsRes, err error)
ListUserPets invokes listUserPets operation.
List attached Pets.
GET /users/{id}/pets
func (*Client) ReadAllTypes ¶
func (c *Client) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (res ReadAllTypesRes, err error)
ReadAllTypes invokes readAllTypes operation.
Finds the AllTypes with the requested ID and returns it.
GET /all-types/{id}
func (*Client) ReadCategory ¶
func (c *Client) ReadCategory(ctx context.Context, params ReadCategoryParams) (res ReadCategoryRes, err error)
ReadCategory invokes readCategory operation.
Finds the Category with the requested ID and returns it.
GET /categories/{id}
func (*Client) ReadPet ¶
func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (res ReadPetRes, err 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) (res ReadPetOwnerRes, err error)
ReadPetOwner invokes readPetOwner operation.
Find the attached User of the Pet with the given ID.
GET /pets/{id}/owner
func (*Client) ReadUser ¶
func (c *Client) ReadUser(ctx context.Context, params ReadUserParams) (res ReadUserRes, err error)
ReadUser invokes readUser operation.
Finds the User with the requested ID and returns it.
GET /users/{id}
func (*Client) ReadUserBestFriend ¶
func (c *Client) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (res ReadUserBestFriendRes, err error)
ReadUserBestFriend invokes readUserBestFriend operation.
Find the attached User of the User with the given ID.
GET /users/{id}/best-friend
func (*Client) UpdateAllTypes ¶
func (c *Client) UpdateAllTypes(ctx context.Context, request UpdateAllTypesReq, params UpdateAllTypesParams) (res UpdateAllTypesRes, err error)
UpdateAllTypes invokes updateAllTypes operation.
Updates a AllTypes and persists changes to storage.
PATCH /all-types/{id}
func (*Client) UpdateCategory ¶
func (c *Client) UpdateCategory(ctx context.Context, request UpdateCategoryReq, params UpdateCategoryParams) (res UpdateCategoryRes, err error)
UpdateCategory invokes updateCategory operation.
Updates a Category and persists changes to storage.
PATCH /categories/{id}
func (*Client) UpdatePet ¶
func (c *Client) UpdatePet(ctx context.Context, request UpdatePetReq, params UpdatePetParams) (res UpdatePetRes, err error)
UpdatePet invokes updatePet operation.
Updates a Pet and persists changes to storage.
PATCH /pets/{id}
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, request UpdateUserReq, params UpdateUserParams) (res UpdateUserRes, err error)
UpdateUser invokes updateUser operation.
Updates a User and persists changes to storage.
PATCH /users/{id}
type CreateAllTypesReq ¶
type CreateAllTypesReq struct { Int int `json:"int"` Int8 int32 `json:"int8"` Int16 int32 `json:"int16"` Int32 int32 `json:"int32"` Int64 int64 `json:"int64"` Uint int64 `json:"uint"` Uint8 int32 `json:"uint8"` Uint16 int32 `json:"uint16"` Uint32 int64 `json:"uint32"` Uint64 int64 `json:"uint64"` Float32 float32 `json:"float32"` Float64 float64 `json:"float64"` StringType string `json:"string_type"` Bool bool `json:"bool"` UUID uuid.UUID `json:"uuid"` Time time.Time `json:"time"` Text string `json:"text"` State CreateAllTypesReqState `json:"state"` Bytes []byte `json:"bytes"` }
func (*CreateAllTypesReq) Decode ¶
func (s *CreateAllTypesReq) Decode(d *jx.Decoder) error
Decode decodes CreateAllTypesReq from json.
func (CreateAllTypesReq) Encode ¶
func (s CreateAllTypesReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CreateAllTypesReq) GetBool ¶
func (s CreateAllTypesReq) GetBool() bool
GetBool returns the value of Bool.
func (CreateAllTypesReq) GetBytes ¶
func (s CreateAllTypesReq) GetBytes() []byte
GetBytes returns the value of Bytes.
func (CreateAllTypesReq) GetFloat32 ¶
func (s CreateAllTypesReq) GetFloat32() float32
GetFloat32 returns the value of Float32.
func (CreateAllTypesReq) GetFloat64 ¶
func (s CreateAllTypesReq) GetFloat64() float64
GetFloat64 returns the value of Float64.
func (CreateAllTypesReq) GetInt ¶
func (s CreateAllTypesReq) GetInt() int
GetInt returns the value of Int.
func (CreateAllTypesReq) GetInt16 ¶
func (s CreateAllTypesReq) GetInt16() int32
GetInt16 returns the value of Int16.
func (CreateAllTypesReq) GetInt32 ¶
func (s CreateAllTypesReq) GetInt32() int32
GetInt32 returns the value of Int32.
func (CreateAllTypesReq) GetInt64 ¶
func (s CreateAllTypesReq) GetInt64() int64
GetInt64 returns the value of Int64.
func (CreateAllTypesReq) GetInt8 ¶
func (s CreateAllTypesReq) GetInt8() int32
GetInt8 returns the value of Int8.
func (CreateAllTypesReq) GetState ¶
func (s CreateAllTypesReq) GetState() CreateAllTypesReqState
GetState returns the value of State.
func (CreateAllTypesReq) GetStringType ¶
func (s CreateAllTypesReq) GetStringType() string
GetStringType returns the value of StringType.
func (CreateAllTypesReq) GetText ¶
func (s CreateAllTypesReq) GetText() string
GetText returns the value of Text.
func (CreateAllTypesReq) GetTime ¶
func (s CreateAllTypesReq) GetTime() time.Time
GetTime returns the value of Time.
func (CreateAllTypesReq) GetUUID ¶
func (s CreateAllTypesReq) GetUUID() uuid.UUID
GetUUID returns the value of UUID.
func (CreateAllTypesReq) GetUint ¶
func (s CreateAllTypesReq) GetUint() int64
GetUint returns the value of Uint.
func (CreateAllTypesReq) GetUint16 ¶
func (s CreateAllTypesReq) GetUint16() int32
GetUint16 returns the value of Uint16.
func (CreateAllTypesReq) GetUint32 ¶
func (s CreateAllTypesReq) GetUint32() int64
GetUint32 returns the value of Uint32.
func (CreateAllTypesReq) GetUint64 ¶
func (s CreateAllTypesReq) GetUint64() int64
GetUint64 returns the value of Uint64.
func (CreateAllTypesReq) GetUint8 ¶
func (s CreateAllTypesReq) GetUint8() int32
GetUint8 returns the value of Uint8.
func (CreateAllTypesReq) MarshalJSON ¶
func (s CreateAllTypesReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateAllTypesReq) SetBool ¶
func (s *CreateAllTypesReq) SetBool(val bool)
SetBool sets the value of Bool.
func (*CreateAllTypesReq) SetBytes ¶
func (s *CreateAllTypesReq) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*CreateAllTypesReq) SetFloat32 ¶
func (s *CreateAllTypesReq) SetFloat32(val float32)
SetFloat32 sets the value of Float32.
func (*CreateAllTypesReq) SetFloat64 ¶
func (s *CreateAllTypesReq) SetFloat64(val float64)
SetFloat64 sets the value of Float64.
func (*CreateAllTypesReq) SetInt ¶
func (s *CreateAllTypesReq) SetInt(val int)
SetInt sets the value of Int.
func (*CreateAllTypesReq) SetInt16 ¶
func (s *CreateAllTypesReq) SetInt16(val int32)
SetInt16 sets the value of Int16.
func (*CreateAllTypesReq) SetInt32 ¶
func (s *CreateAllTypesReq) SetInt32(val int32)
SetInt32 sets the value of Int32.
func (*CreateAllTypesReq) SetInt64 ¶
func (s *CreateAllTypesReq) SetInt64(val int64)
SetInt64 sets the value of Int64.
func (*CreateAllTypesReq) SetInt8 ¶
func (s *CreateAllTypesReq) SetInt8(val int32)
SetInt8 sets the value of Int8.
func (*CreateAllTypesReq) SetState ¶
func (s *CreateAllTypesReq) SetState(val CreateAllTypesReqState)
SetState sets the value of State.
func (*CreateAllTypesReq) SetStringType ¶
func (s *CreateAllTypesReq) SetStringType(val string)
SetStringType sets the value of StringType.
func (*CreateAllTypesReq) SetText ¶
func (s *CreateAllTypesReq) SetText(val string)
SetText sets the value of Text.
func (*CreateAllTypesReq) SetTime ¶
func (s *CreateAllTypesReq) SetTime(val time.Time)
SetTime sets the value of Time.
func (*CreateAllTypesReq) SetUUID ¶
func (s *CreateAllTypesReq) SetUUID(val uuid.UUID)
SetUUID sets the value of UUID.
func (*CreateAllTypesReq) SetUint ¶
func (s *CreateAllTypesReq) SetUint(val int64)
SetUint sets the value of Uint.
func (*CreateAllTypesReq) SetUint16 ¶
func (s *CreateAllTypesReq) SetUint16(val int32)
SetUint16 sets the value of Uint16.
func (*CreateAllTypesReq) SetUint32 ¶
func (s *CreateAllTypesReq) SetUint32(val int64)
SetUint32 sets the value of Uint32.
func (*CreateAllTypesReq) SetUint64 ¶
func (s *CreateAllTypesReq) SetUint64(val int64)
SetUint64 sets the value of Uint64.
func (*CreateAllTypesReq) SetUint8 ¶
func (s *CreateAllTypesReq) SetUint8(val int32)
SetUint8 sets the value of Uint8.
func (*CreateAllTypesReq) UnmarshalJSON ¶
func (s *CreateAllTypesReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CreateAllTypesReq) Validate ¶
func (s CreateAllTypesReq) Validate() error
type CreateAllTypesReqState ¶
type CreateAllTypesReqState string
const ( CreateAllTypesReqStateOn CreateAllTypesReqState = "on" CreateAllTypesReqStateOff CreateAllTypesReqState = "off" )
func (*CreateAllTypesReqState) Decode ¶
func (s *CreateAllTypesReqState) Decode(d *jx.Decoder) error
Decode decodes CreateAllTypesReqState from json.
func (CreateAllTypesReqState) Encode ¶
func (s CreateAllTypesReqState) Encode(e *jx.Encoder)
Encode encodes CreateAllTypesReqState as json.
func (CreateAllTypesReqState) MarshalJSON ¶
func (s CreateAllTypesReqState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateAllTypesReqState) UnmarshalJSON ¶
func (s *CreateAllTypesReqState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CreateAllTypesReqState) Validate ¶
func (s CreateAllTypesReqState) Validate() error
type CreateAllTypesRes ¶
type CreateAllTypesRes interface {
// contains filtered or unexported methods
}
type CreateCategoryReq ¶
func (*CreateCategoryReq) Decode ¶
func (s *CreateCategoryReq) Decode(d *jx.Decoder) error
Decode decodes CreateCategoryReq from json.
func (CreateCategoryReq) Encode ¶
func (s CreateCategoryReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CreateCategoryReq) GetName ¶
func (s CreateCategoryReq) GetName() string
GetName returns the value of Name.
func (CreateCategoryReq) GetPets ¶
func (s CreateCategoryReq) GetPets() []int
GetPets returns the value of Pets.
func (CreateCategoryReq) MarshalJSON ¶
func (s CreateCategoryReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateCategoryReq) SetName ¶
func (s *CreateCategoryReq) SetName(val string)
SetName sets the value of Name.
func (*CreateCategoryReq) SetPets ¶
func (s *CreateCategoryReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*CreateCategoryReq) UnmarshalJSON ¶
func (s *CreateCategoryReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CreateCategoryRes ¶
type CreateCategoryRes interface {
// contains filtered or unexported methods
}
type CreatePetReq ¶
type CreatePetReq struct { Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` 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) GetHeight ¶
func (s CreatePetReq) GetHeight() OptInt
GetHeight returns the value of Height.
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) GetTagID ¶
func (s CreatePetReq) GetTagID() []byte
GetTagID returns the value of TagID.
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) SetHeight ¶
func (s *CreatePetReq) SetHeight(val OptInt)
SetHeight sets the value of Height.
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) SetTagID ¶
func (s *CreatePetReq) SetTagID(val []byte)
SetTagID sets the value of TagID.
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 CreateUserReq ¶
type CreateUserReq struct { Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed CreateUserReqFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptCreateUserReqFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptCreateUserReqFavoriteFishBreed `json:"favorite_fish_breed"` Pets []int `json:"pets"` BestFriend OptInt `json:"best_friend"` }
func (*CreateUserReq) Decode ¶
func (s *CreateUserReq) Decode(d *jx.Decoder) error
Decode decodes CreateUserReq from json.
func (CreateUserReq) Encode ¶
func (s CreateUserReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CreateUserReq) GetAge ¶
func (s CreateUserReq) GetAge() int64
GetAge returns the value of Age.
func (CreateUserReq) GetBestFriend ¶
func (s CreateUserReq) GetBestFriend() OptInt
GetBestFriend returns the value of BestFriend.
func (CreateUserReq) GetFavoriteCatBreed ¶
func (s CreateUserReq) GetFavoriteCatBreed() CreateUserReqFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (CreateUserReq) GetFavoriteDogBreed ¶
func (s CreateUserReq) GetFavoriteDogBreed() OptCreateUserReqFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (CreateUserReq) GetFavoriteFishBreed ¶
func (s CreateUserReq) GetFavoriteFishBreed() OptCreateUserReqFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (CreateUserReq) GetHeight ¶
func (s CreateUserReq) GetHeight() OptInt64
GetHeight returns the value of Height.
func (CreateUserReq) GetName ¶
func (s CreateUserReq) GetName() string
GetName returns the value of Name.
func (CreateUserReq) GetPets ¶
func (s CreateUserReq) GetPets() []int
GetPets returns the value of Pets.
func (CreateUserReq) MarshalJSON ¶
func (s CreateUserReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateUserReq) SetAge ¶
func (s *CreateUserReq) SetAge(val int64)
SetAge sets the value of Age.
func (*CreateUserReq) SetBestFriend ¶
func (s *CreateUserReq) SetBestFriend(val OptInt)
SetBestFriend sets the value of BestFriend.
func (*CreateUserReq) SetFavoriteCatBreed ¶
func (s *CreateUserReq) SetFavoriteCatBreed(val CreateUserReqFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*CreateUserReq) SetFavoriteDogBreed ¶
func (s *CreateUserReq) SetFavoriteDogBreed(val OptCreateUserReqFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*CreateUserReq) SetFavoriteFishBreed ¶
func (s *CreateUserReq) SetFavoriteFishBreed(val OptCreateUserReqFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*CreateUserReq) SetHeight ¶
func (s *CreateUserReq) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*CreateUserReq) SetName ¶
func (s *CreateUserReq) SetName(val string)
SetName sets the value of Name.
func (*CreateUserReq) SetPets ¶
func (s *CreateUserReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*CreateUserReq) UnmarshalJSON ¶
func (s *CreateUserReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CreateUserReq) Validate ¶
func (s CreateUserReq) Validate() error
type CreateUserReqFavoriteCatBreed ¶
type CreateUserReqFavoriteCatBreed string
const ( CreateUserReqFavoriteCatBreedSiamese CreateUserReqFavoriteCatBreed = "siamese" CreateUserReqFavoriteCatBreedBengal CreateUserReqFavoriteCatBreed = "bengal" CreateUserReqFavoriteCatBreedLion CreateUserReqFavoriteCatBreed = "lion" CreateUserReqFavoriteCatBreedTiger CreateUserReqFavoriteCatBreed = "tiger" CreateUserReqFavoriteCatBreedLeopard CreateUserReqFavoriteCatBreed = "leopard" CreateUserReqFavoriteCatBreedOther CreateUserReqFavoriteCatBreed = "other" )
func (*CreateUserReqFavoriteCatBreed) Decode ¶
func (s *CreateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteCatBreed from json.
func (CreateUserReqFavoriteCatBreed) Encode ¶
func (s CreateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteCatBreed as json.
func (CreateUserReqFavoriteCatBreed) MarshalJSON ¶
func (s CreateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateUserReqFavoriteCatBreed) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CreateUserReqFavoriteCatBreed) Validate ¶
func (s CreateUserReqFavoriteCatBreed) Validate() error
type CreateUserReqFavoriteDogBreed ¶
type CreateUserReqFavoriteDogBreed string
const (
CreateUserReqFavoriteDogBreedKuro CreateUserReqFavoriteDogBreed = "Kuro"
)
func (*CreateUserReqFavoriteDogBreed) Decode ¶
func (s *CreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteDogBreed from json.
func (CreateUserReqFavoriteDogBreed) Encode ¶
func (s CreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteDogBreed as json.
func (CreateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s CreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CreateUserReqFavoriteDogBreed) Validate ¶
func (s CreateUserReqFavoriteDogBreed) Validate() error
type CreateUserReqFavoriteFishBreed ¶
type CreateUserReqFavoriteFishBreed string
const ( CreateUserReqFavoriteFishBreedGold CreateUserReqFavoriteFishBreed = "gold" CreateUserReqFavoriteFishBreedKoi CreateUserReqFavoriteFishBreed = "koi" CreateUserReqFavoriteFishBreedShark CreateUserReqFavoriteFishBreed = "shark" )
func (*CreateUserReqFavoriteFishBreed) Decode ¶
func (s *CreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteFishBreed from json.
func (CreateUserReqFavoriteFishBreed) Encode ¶
func (s CreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteFishBreed as json.
func (CreateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s CreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *CreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CreateUserReqFavoriteFishBreed) Validate ¶
func (s CreateUserReqFavoriteFishBreed) Validate() error
type CreateUserRes ¶
type CreateUserRes interface {
// contains filtered or unexported methods
}
type DeleteAllTypesNoContent ¶
type DeleteAllTypesNoContent struct{}
DeleteAllTypesNoContent is response for DeleteAllTypes operation.
type DeleteAllTypesParams ¶
type DeleteAllTypesParams struct { // ID of the AllTypes. ID int64 }
type DeleteAllTypesRes ¶
type DeleteAllTypesRes interface {
// contains filtered or unexported methods
}
type DeleteCategoryNoContent ¶
type DeleteCategoryNoContent struct{}
DeleteCategoryNoContent is response for DeleteCategory operation.
type DeleteCategoryParams ¶
type DeleteCategoryParams struct { // ID of the Category. ID int }
type DeleteCategoryRes ¶
type DeleteCategoryRes interface {
// contains filtered or unexported methods
}
type DeletePetNoContent ¶
type DeletePetNoContent struct{}
DeletePetNoContent is response for DeletePet operation.
type DeletePetParams ¶
type DeletePetParams struct { // ID of the Pet. ID int }
type DeletePetRes ¶
type DeletePetRes interface {
// contains filtered or unexported methods
}
type DeleteUserNoContent ¶
type DeleteUserNoContent struct{}
DeleteUserNoContent is response for DeleteUser operation.
type DeleteUserParams ¶
type DeleteUserParams struct { // ID of the User. ID int }
type DeleteUserRes ¶
type DeleteUserRes interface {
// contains filtered or unexported methods
}
type Handler ¶
type Handler interface { // CreateAllTypes implements createAllTypes operation. // // Creates a new AllTypes and persists it to storage. // // POST /all-types CreateAllTypes(ctx context.Context, req CreateAllTypesReq) (CreateAllTypesRes, error) // CreateCategory implements createCategory operation. // // Creates a new Category and persists it to storage. // // POST /categories CreateCategory(ctx context.Context, req CreateCategoryReq) (CreateCategoryRes, error) // CreatePet implements createPet operation. // // Creates a new Pet and persists it to storage. // // POST /pets CreatePet(ctx context.Context, req CreatePetReq) (CreatePetRes, error) // CreateUser implements createUser operation. // // Creates a new User and persists it to storage. // // POST /users CreateUser(ctx context.Context, req CreateUserReq) (CreateUserRes, error) // DeleteAllTypes implements deleteAllTypes operation. // // Deletes the AllTypes with the requested ID. // // DELETE /all-types/{id} DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error) // DeleteCategory implements deleteCategory operation. // // Deletes the Category with the requested ID. // // DELETE /categories/{id} DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error) // DeletePet implements deletePet operation. // // Deletes the Pet with the requested ID. // // DELETE /pets/{id} DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error) // DeleteUser implements deleteUser operation. // // Deletes the User with the requested ID. // // DELETE /users/{id} DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error) // ListAllTypes implements listAllTypes operation. // // List AllTypes. // // GET /all-types ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error) // ListCategory implements listCategory operation. // // List Categories. // // GET /categories ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error) // ListCategoryPets implements listCategoryPets operation. // // List attached Pets. // // GET /categories/{id}/pets ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, 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) // ListUser implements listUser operation. // // List Users. // // GET /users ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error) // ListUserPets implements listUserPets operation. // // List attached Pets. // // GET /users/{id}/pets ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error) // ReadAllTypes implements readAllTypes operation. // // Finds the AllTypes with the requested ID and returns it. // // GET /all-types/{id} ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error) // ReadCategory implements readCategory operation. // // Finds the Category with the requested ID and returns it. // // GET /categories/{id} ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, 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) // ReadUser implements readUser operation. // // Finds the User with the requested ID and returns it. // // GET /users/{id} ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error) // ReadUserBestFriend implements readUserBestFriend operation. // // Find the attached User of the User with the given ID. // // GET /users/{id}/best-friend ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error) // UpdateAllTypes implements updateAllTypes operation. // // Updates a AllTypes and persists changes to storage. // // PATCH /all-types/{id} UpdateAllTypes(ctx context.Context, req UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error) // UpdateCategory implements updateCategory operation. // // Updates a Category and persists changes to storage. // // PATCH /categories/{id} UpdateCategory(ctx context.Context, req UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, 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) // UpdateUser implements updateUser operation. // // Updates a User and persists changes to storage. // // PATCH /users/{id} UpdateUser(ctx context.Context, req UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error) }
Handler handles operations described by OpenAPI v3 specification.
type ListAllTypesOKApplicationJSON ¶
type ListAllTypesOKApplicationJSON []AllTypesList
func (*ListAllTypesOKApplicationJSON) Decode ¶
func (s *ListAllTypesOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListAllTypesOKApplicationJSON from json.
func (ListAllTypesOKApplicationJSON) Encode ¶
func (s ListAllTypesOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListAllTypesOKApplicationJSON as json.
func (ListAllTypesOKApplicationJSON) MarshalJSON ¶
func (s ListAllTypesOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListAllTypesOKApplicationJSON) UnmarshalJSON ¶
func (s *ListAllTypesOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListAllTypesOKApplicationJSON) Validate ¶
func (s ListAllTypesOKApplicationJSON) Validate() error
type ListAllTypesParams ¶
type ListAllTypesRes ¶
type ListAllTypesRes interface {
// contains filtered or unexported methods
}
type ListCategoryOKApplicationJSON ¶
type ListCategoryOKApplicationJSON []CategoryList
func (*ListCategoryOKApplicationJSON) Decode ¶
func (s *ListCategoryOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListCategoryOKApplicationJSON from json.
func (ListCategoryOKApplicationJSON) Encode ¶
func (s ListCategoryOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListCategoryOKApplicationJSON as json.
func (ListCategoryOKApplicationJSON) MarshalJSON ¶
func (s ListCategoryOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListCategoryOKApplicationJSON) UnmarshalJSON ¶
func (s *ListCategoryOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListCategoryOKApplicationJSON) Validate ¶
func (s ListCategoryOKApplicationJSON) Validate() error
type ListCategoryParams ¶
type ListCategoryPetsOKApplicationJSON ¶
type ListCategoryPetsOKApplicationJSON []CategoryPetsList
func (*ListCategoryPetsOKApplicationJSON) Decode ¶
func (s *ListCategoryPetsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListCategoryPetsOKApplicationJSON from json.
func (ListCategoryPetsOKApplicationJSON) Encode ¶
func (s ListCategoryPetsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListCategoryPetsOKApplicationJSON as json.
func (ListCategoryPetsOKApplicationJSON) MarshalJSON ¶
func (s ListCategoryPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListCategoryPetsOKApplicationJSON) UnmarshalJSON ¶
func (s *ListCategoryPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListCategoryPetsOKApplicationJSON) Validate ¶
func (s ListCategoryPetsOKApplicationJSON) Validate() error
type ListCategoryPetsParams ¶
type ListCategoryPetsRes ¶
type ListCategoryPetsRes interface {
// contains filtered or unexported methods
}
type ListCategoryRes ¶
type ListCategoryRes interface {
// contains filtered or unexported methods
}
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) UnmarshalJSON ¶
func (s *ListPetCategoriesOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetCategoriesOKApplicationJSON) Validate ¶
func (s ListPetCategoriesOKApplicationJSON) Validate() error
type ListPetCategoriesParams ¶
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) UnmarshalJSON ¶
func (s *ListPetFriendsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetFriendsOKApplicationJSON) Validate ¶
func (s ListPetFriendsOKApplicationJSON) Validate() error
type ListPetFriendsParams ¶
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) UnmarshalJSON ¶
func (s *ListPetOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListPetOKApplicationJSON) Validate ¶
func (s ListPetOKApplicationJSON) Validate() error
type ListPetParams ¶
type ListPetRes ¶
type ListPetRes interface {
// contains filtered or unexported methods
}
type ListUserOKApplicationJSON ¶
type ListUserOKApplicationJSON []UserList
func (*ListUserOKApplicationJSON) Decode ¶
func (s *ListUserOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListUserOKApplicationJSON from json.
func (ListUserOKApplicationJSON) Encode ¶
func (s ListUserOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListUserOKApplicationJSON as json.
func (ListUserOKApplicationJSON) MarshalJSON ¶
func (s ListUserOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListUserOKApplicationJSON) UnmarshalJSON ¶
func (s *ListUserOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListUserOKApplicationJSON) Validate ¶
func (s ListUserOKApplicationJSON) Validate() error
type ListUserParams ¶
type ListUserPetsOKApplicationJSON ¶
type ListUserPetsOKApplicationJSON []UserPetsList
func (*ListUserPetsOKApplicationJSON) Decode ¶
func (s *ListUserPetsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes ListUserPetsOKApplicationJSON from json.
func (ListUserPetsOKApplicationJSON) Encode ¶
func (s ListUserPetsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes ListUserPetsOKApplicationJSON as json.
func (ListUserPetsOKApplicationJSON) MarshalJSON ¶
func (s ListUserPetsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ListUserPetsOKApplicationJSON) UnmarshalJSON ¶
func (s *ListUserPetsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ListUserPetsOKApplicationJSON) Validate ¶
func (s ListUserPetsOKApplicationJSON) Validate() error
type ListUserPetsParams ¶
type ListUserPetsRes ¶
type ListUserPetsRes interface {
// contains filtered or unexported methods
}
type ListUserRes ¶
type ListUserRes interface {
// contains filtered or unexported methods
}
type OgentHandler ¶
type OgentHandler struct {
// contains filtered or unexported fields
}
OgentHandler implements the ogen generated Handler interface and uses Ent as data layer.
func NewOgentHandler ¶
func NewOgentHandler(c *ent.Client) *OgentHandler
NewOgentHandler returns a new OgentHandler.
func (*OgentHandler) CreateAllTypes ¶
func (h *OgentHandler) CreateAllTypes(ctx context.Context, req CreateAllTypesReq) (CreateAllTypesRes, error)
CreateAllTypes handles POST /all-types-slice requests.
func (*OgentHandler) CreateCategory ¶
func (h *OgentHandler) CreateCategory(ctx context.Context, req CreateCategoryReq) (CreateCategoryRes, error)
CreateCategory handles POST /categories requests.
func (*OgentHandler) CreatePet ¶
func (h *OgentHandler) CreatePet(ctx context.Context, req CreatePetReq) (CreatePetRes, error)
CreatePet handles POST /pets requests.
func (*OgentHandler) CreateUser ¶
func (h *OgentHandler) CreateUser(ctx context.Context, req CreateUserReq) (CreateUserRes, error)
CreateUser handles POST /users requests.
func (*OgentHandler) DeleteAllTypes ¶
func (h *OgentHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (DeleteAllTypesRes, error)
DeleteAllTypes handles DELETE /all-types-slice/{id} requests.
func (*OgentHandler) DeleteCategory ¶
func (h *OgentHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (DeleteCategoryRes, error)
DeleteCategory handles DELETE /categories/{id} requests.
func (*OgentHandler) DeletePet ¶
func (h *OgentHandler) DeletePet(ctx context.Context, params DeletePetParams) (DeletePetRes, error)
DeletePet handles DELETE /pets/{id} requests.
func (*OgentHandler) DeleteUser ¶
func (h *OgentHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (DeleteUserRes, error)
DeleteUser handles DELETE /users/{id} requests.
func (*OgentHandler) ListAllTypes ¶
func (h *OgentHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (ListAllTypesRes, error)
ListAllTypes handles GET /all-types-slice requests.
func (*OgentHandler) ListCategory ¶
func (h *OgentHandler) ListCategory(ctx context.Context, params ListCategoryParams) (ListCategoryRes, error)
ListCategory handles GET /categories requests.
func (*OgentHandler) ListCategoryPets ¶
func (h *OgentHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (ListCategoryPetsRes, error)
ListCategoryPets handles GET /categories/{id}/pets requests.
func (*OgentHandler) ListPet ¶
func (h *OgentHandler) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, error)
ListPet handles GET /pets requests.
func (*OgentHandler) ListPetCategories ¶
func (h *OgentHandler) ListPetCategories(ctx context.Context, params ListPetCategoriesParams) (ListPetCategoriesRes, error)
ListPetCategories handles GET /pets/{id}/categories requests.
func (*OgentHandler) ListPetFriends ¶
func (h *OgentHandler) ListPetFriends(ctx context.Context, params ListPetFriendsParams) (ListPetFriendsRes, error)
ListPetFriends handles GET /pets/{id}/friends requests.
func (*OgentHandler) ListUser ¶
func (h *OgentHandler) ListUser(ctx context.Context, params ListUserParams) (ListUserRes, error)
ListUser handles GET /users requests.
func (*OgentHandler) ListUserPets ¶
func (h *OgentHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (ListUserPetsRes, error)
ListUserPets handles GET /users/{id}/pets requests.
func (*OgentHandler) ReadAllTypes ¶
func (h *OgentHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (ReadAllTypesRes, error)
ReadAllTypes handles GET /all-types-slice/{id} requests.
func (*OgentHandler) ReadCategory ¶
func (h *OgentHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (ReadCategoryRes, error)
ReadCategory handles GET /categories/{id} requests.
func (*OgentHandler) ReadPet ¶
func (h *OgentHandler) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, error)
ReadPet handles GET /pets/{id} requests.
func (*OgentHandler) ReadPetOwner ¶
func (h *OgentHandler) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (ReadPetOwnerRes, error)
ReadPetOwner handles GET /pets/{id}/owner requests.
func (*OgentHandler) ReadUser ¶
func (h *OgentHandler) ReadUser(ctx context.Context, params ReadUserParams) (ReadUserRes, error)
ReadUser handles GET /users/{id} requests.
func (*OgentHandler) ReadUserBestFriend ¶
func (h *OgentHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (ReadUserBestFriendRes, error)
ReadUserBestFriend handles GET /users/{id}/best-friend requests.
func (*OgentHandler) UpdateAllTypes ¶
func (h *OgentHandler) UpdateAllTypes(ctx context.Context, req UpdateAllTypesReq, params UpdateAllTypesParams) (UpdateAllTypesRes, error)
UpdateAllTypes handles PATCH /all-types-slice/{id} requests.
func (*OgentHandler) UpdateCategory ¶
func (h *OgentHandler) UpdateCategory(ctx context.Context, req UpdateCategoryReq, params UpdateCategoryParams) (UpdateCategoryRes, error)
UpdateCategory handles PATCH /categories/{id} requests.
func (*OgentHandler) UpdatePet ¶
func (h *OgentHandler) UpdatePet(ctx context.Context, req UpdatePetReq, params UpdatePetParams) (UpdatePetRes, error)
UpdatePet handles PATCH /pets/{id} requests.
func (*OgentHandler) UpdateUser ¶
func (h *OgentHandler) UpdateUser(ctx context.Context, req UpdateUserReq, params UpdateUserParams) (UpdateUserRes, error)
UpdateUser handles PATCH /users/{id} requests.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreateUserReqFavoriteDogBreed ¶
type OptCreateUserReqFavoriteDogBreed struct { Value CreateUserReqFavoriteDogBreed Set bool }
OptCreateUserReqFavoriteDogBreed is optional CreateUserReqFavoriteDogBreed.
func NewOptCreateUserReqFavoriteDogBreed ¶
func NewOptCreateUserReqFavoriteDogBreed(v CreateUserReqFavoriteDogBreed) OptCreateUserReqFavoriteDogBreed
NewOptCreateUserReqFavoriteDogBreed returns new OptCreateUserReqFavoriteDogBreed with value set to v.
func (*OptCreateUserReqFavoriteDogBreed) Decode ¶
func (o *OptCreateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteDogBreed from json.
func (OptCreateUserReqFavoriteDogBreed) Encode ¶
func (o OptCreateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteDogBreed as json.
func (OptCreateUserReqFavoriteDogBreed) Get ¶
func (o OptCreateUserReqFavoriteDogBreed) Get() (v CreateUserReqFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateUserReqFavoriteDogBreed) IsSet ¶
func (o OptCreateUserReqFavoriteDogBreed) IsSet() bool
IsSet returns true if OptCreateUserReqFavoriteDogBreed was set.
func (OptCreateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s OptCreateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateUserReqFavoriteDogBreed) Or ¶
func (o OptCreateUserReqFavoriteDogBreed) Or(d CreateUserReqFavoriteDogBreed) CreateUserReqFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptCreateUserReqFavoriteDogBreed) Reset ¶
func (o *OptCreateUserReqFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptCreateUserReqFavoriteDogBreed) SetTo ¶
func (o *OptCreateUserReqFavoriteDogBreed) SetTo(v CreateUserReqFavoriteDogBreed)
SetTo sets value to v.
func (*OptCreateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptCreateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreateUserReqFavoriteFishBreed ¶
type OptCreateUserReqFavoriteFishBreed struct { Value CreateUserReqFavoriteFishBreed Set bool }
OptCreateUserReqFavoriteFishBreed is optional CreateUserReqFavoriteFishBreed.
func NewOptCreateUserReqFavoriteFishBreed ¶
func NewOptCreateUserReqFavoriteFishBreed(v CreateUserReqFavoriteFishBreed) OptCreateUserReqFavoriteFishBreed
NewOptCreateUserReqFavoriteFishBreed returns new OptCreateUserReqFavoriteFishBreed with value set to v.
func (*OptCreateUserReqFavoriteFishBreed) Decode ¶
func (o *OptCreateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes CreateUserReqFavoriteFishBreed from json.
func (OptCreateUserReqFavoriteFishBreed) Encode ¶
func (o OptCreateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes CreateUserReqFavoriteFishBreed as json.
func (OptCreateUserReqFavoriteFishBreed) Get ¶
func (o OptCreateUserReqFavoriteFishBreed) Get() (v CreateUserReqFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateUserReqFavoriteFishBreed) IsSet ¶
func (o OptCreateUserReqFavoriteFishBreed) IsSet() bool
IsSet returns true if OptCreateUserReqFavoriteFishBreed was set.
func (OptCreateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s OptCreateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreateUserReqFavoriteFishBreed) Or ¶
func (o OptCreateUserReqFavoriteFishBreed) Or(d CreateUserReqFavoriteFishBreed) CreateUserReqFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptCreateUserReqFavoriteFishBreed) Reset ¶
func (o *OptCreateUserReqFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptCreateUserReqFavoriteFishBreed) SetTo ¶
func (o *OptCreateUserReqFavoriteFishBreed) SetTo(v CreateUserReqFavoriteFishBreed)
SetTo sets value to v.
func (*OptCreateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptCreateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
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 OptFloat32 ¶
OptFloat32 is optional float32.
func NewOptFloat32 ¶
func NewOptFloat32(v float32) OptFloat32
NewOptFloat32 returns new OptFloat32 with value set to v.
func (*OptFloat32) Decode ¶
func (o *OptFloat32) Decode(d *jx.Decoder) error
Decode decodes float32 from json.
func (OptFloat32) Encode ¶
func (o OptFloat32) Encode(e *jx.Encoder)
Encode encodes float32 as json.
func (OptFloat32) Get ¶
func (o OptFloat32) Get() (v float32, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat32) IsSet ¶
func (o OptFloat32) IsSet() bool
IsSet returns true if OptFloat32 was set.
func (OptFloat32) MarshalJSON ¶
func (s OptFloat32) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat32) Or ¶
func (o OptFloat32) Or(d float32) float32
Or returns value if set, or given parameter if does not.
func (*OptFloat32) UnmarshalJSON ¶
func (s *OptFloat32) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) 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.
func (OptInt32) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt32) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetCreateOwnerFavoriteDogBreed ¶
type OptPetCreateOwnerFavoriteDogBreed struct { Value PetCreateOwnerFavoriteDogBreed Set bool }
OptPetCreateOwnerFavoriteDogBreed is optional PetCreateOwnerFavoriteDogBreed.
func NewOptPetCreateOwnerFavoriteDogBreed ¶
func NewOptPetCreateOwnerFavoriteDogBreed(v PetCreateOwnerFavoriteDogBreed) OptPetCreateOwnerFavoriteDogBreed
NewOptPetCreateOwnerFavoriteDogBreed returns new OptPetCreateOwnerFavoriteDogBreed with value set to v.
func (*OptPetCreateOwnerFavoriteDogBreed) Decode ¶
func (o *OptPetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteDogBreed from json.
func (OptPetCreateOwnerFavoriteDogBreed) Encode ¶
func (o OptPetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteDogBreed as json.
func (OptPetCreateOwnerFavoriteDogBreed) Get ¶
func (o OptPetCreateOwnerFavoriteDogBreed) Get() (v PetCreateOwnerFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetCreateOwnerFavoriteDogBreed) IsSet ¶
func (o OptPetCreateOwnerFavoriteDogBreed) IsSet() bool
IsSet returns true if OptPetCreateOwnerFavoriteDogBreed was set.
func (OptPetCreateOwnerFavoriteDogBreed) MarshalJSON ¶
func (s OptPetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetCreateOwnerFavoriteDogBreed) Or ¶
func (o OptPetCreateOwnerFavoriteDogBreed) Or(d PetCreateOwnerFavoriteDogBreed) PetCreateOwnerFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptPetCreateOwnerFavoriteDogBreed) Reset ¶
func (o *OptPetCreateOwnerFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptPetCreateOwnerFavoriteDogBreed) SetTo ¶
func (o *OptPetCreateOwnerFavoriteDogBreed) SetTo(v PetCreateOwnerFavoriteDogBreed)
SetTo sets value to v.
func (*OptPetCreateOwnerFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptPetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetCreateOwnerFavoriteFishBreed ¶
type OptPetCreateOwnerFavoriteFishBreed struct { Value PetCreateOwnerFavoriteFishBreed Set bool }
OptPetCreateOwnerFavoriteFishBreed is optional PetCreateOwnerFavoriteFishBreed.
func NewOptPetCreateOwnerFavoriteFishBreed ¶
func NewOptPetCreateOwnerFavoriteFishBreed(v PetCreateOwnerFavoriteFishBreed) OptPetCreateOwnerFavoriteFishBreed
NewOptPetCreateOwnerFavoriteFishBreed returns new OptPetCreateOwnerFavoriteFishBreed with value set to v.
func (*OptPetCreateOwnerFavoriteFishBreed) Decode ¶
func (o *OptPetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteFishBreed from json.
func (OptPetCreateOwnerFavoriteFishBreed) Encode ¶
func (o OptPetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteFishBreed as json.
func (OptPetCreateOwnerFavoriteFishBreed) Get ¶
func (o OptPetCreateOwnerFavoriteFishBreed) Get() (v PetCreateOwnerFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetCreateOwnerFavoriteFishBreed) IsSet ¶
func (o OptPetCreateOwnerFavoriteFishBreed) IsSet() bool
IsSet returns true if OptPetCreateOwnerFavoriteFishBreed was set.
func (OptPetCreateOwnerFavoriteFishBreed) MarshalJSON ¶
func (s OptPetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetCreateOwnerFavoriteFishBreed) Or ¶
func (o OptPetCreateOwnerFavoriteFishBreed) Or(d PetCreateOwnerFavoriteFishBreed) PetCreateOwnerFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptPetCreateOwnerFavoriteFishBreed) Reset ¶
func (o *OptPetCreateOwnerFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptPetCreateOwnerFavoriteFishBreed) SetTo ¶
func (o *OptPetCreateOwnerFavoriteFishBreed) SetTo(v PetCreateOwnerFavoriteFishBreed)
SetTo sets value to v.
func (*OptPetCreateOwnerFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptPetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetOwnerReadFavoriteDogBreed ¶
type OptPetOwnerReadFavoriteDogBreed struct { Value PetOwnerReadFavoriteDogBreed Set bool }
OptPetOwnerReadFavoriteDogBreed is optional PetOwnerReadFavoriteDogBreed.
func NewOptPetOwnerReadFavoriteDogBreed ¶
func NewOptPetOwnerReadFavoriteDogBreed(v PetOwnerReadFavoriteDogBreed) OptPetOwnerReadFavoriteDogBreed
NewOptPetOwnerReadFavoriteDogBreed returns new OptPetOwnerReadFavoriteDogBreed with value set to v.
func (*OptPetOwnerReadFavoriteDogBreed) Decode ¶
func (o *OptPetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteDogBreed from json.
func (OptPetOwnerReadFavoriteDogBreed) Encode ¶
func (o OptPetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteDogBreed as json.
func (OptPetOwnerReadFavoriteDogBreed) Get ¶
func (o OptPetOwnerReadFavoriteDogBreed) Get() (v PetOwnerReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetOwnerReadFavoriteDogBreed) IsSet ¶
func (o OptPetOwnerReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptPetOwnerReadFavoriteDogBreed was set.
func (OptPetOwnerReadFavoriteDogBreed) MarshalJSON ¶
func (s OptPetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetOwnerReadFavoriteDogBreed) Or ¶
func (o OptPetOwnerReadFavoriteDogBreed) Or(d PetOwnerReadFavoriteDogBreed) PetOwnerReadFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptPetOwnerReadFavoriteDogBreed) Reset ¶
func (o *OptPetOwnerReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptPetOwnerReadFavoriteDogBreed) SetTo ¶
func (o *OptPetOwnerReadFavoriteDogBreed) SetTo(v PetOwnerReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptPetOwnerReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptPetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPetOwnerReadFavoriteFishBreed ¶
type OptPetOwnerReadFavoriteFishBreed struct { Value PetOwnerReadFavoriteFishBreed Set bool }
OptPetOwnerReadFavoriteFishBreed is optional PetOwnerReadFavoriteFishBreed.
func NewOptPetOwnerReadFavoriteFishBreed ¶
func NewOptPetOwnerReadFavoriteFishBreed(v PetOwnerReadFavoriteFishBreed) OptPetOwnerReadFavoriteFishBreed
NewOptPetOwnerReadFavoriteFishBreed returns new OptPetOwnerReadFavoriteFishBreed with value set to v.
func (*OptPetOwnerReadFavoriteFishBreed) Decode ¶
func (o *OptPetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteFishBreed from json.
func (OptPetOwnerReadFavoriteFishBreed) Encode ¶
func (o OptPetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteFishBreed as json.
func (OptPetOwnerReadFavoriteFishBreed) Get ¶
func (o OptPetOwnerReadFavoriteFishBreed) Get() (v PetOwnerReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPetOwnerReadFavoriteFishBreed) IsSet ¶
func (o OptPetOwnerReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptPetOwnerReadFavoriteFishBreed was set.
func (OptPetOwnerReadFavoriteFishBreed) MarshalJSON ¶
func (s OptPetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPetOwnerReadFavoriteFishBreed) Or ¶
func (o OptPetOwnerReadFavoriteFishBreed) Or(d PetOwnerReadFavoriteFishBreed) PetOwnerReadFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptPetOwnerReadFavoriteFishBreed) Reset ¶
func (o *OptPetOwnerReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptPetOwnerReadFavoriteFishBreed) SetTo ¶
func (o *OptPetOwnerReadFavoriteFishBreed) SetTo(v PetOwnerReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptPetOwnerReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptPetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUUID ¶
OptUUID is optional uuid.UUID.
func NewOptUUID ¶
NewOptUUID returns new OptUUID with value set to v.
func (OptUUID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptUUID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateAllTypesReqState ¶
type OptUpdateAllTypesReqState struct { Value UpdateAllTypesReqState Set bool }
OptUpdateAllTypesReqState is optional UpdateAllTypesReqState.
func NewOptUpdateAllTypesReqState ¶
func NewOptUpdateAllTypesReqState(v UpdateAllTypesReqState) OptUpdateAllTypesReqState
NewOptUpdateAllTypesReqState returns new OptUpdateAllTypesReqState with value set to v.
func (*OptUpdateAllTypesReqState) Decode ¶
func (o *OptUpdateAllTypesReqState) Decode(d *jx.Decoder) error
Decode decodes UpdateAllTypesReqState from json.
func (OptUpdateAllTypesReqState) Encode ¶
func (o OptUpdateAllTypesReqState) Encode(e *jx.Encoder)
Encode encodes UpdateAllTypesReqState as json.
func (OptUpdateAllTypesReqState) Get ¶
func (o OptUpdateAllTypesReqState) Get() (v UpdateAllTypesReqState, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateAllTypesReqState) IsSet ¶
func (o OptUpdateAllTypesReqState) IsSet() bool
IsSet returns true if OptUpdateAllTypesReqState was set.
func (OptUpdateAllTypesReqState) MarshalJSON ¶
func (s OptUpdateAllTypesReqState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUpdateAllTypesReqState) Reset ¶
func (o *OptUpdateAllTypesReqState) Reset()
Reset unsets value.
func (*OptUpdateAllTypesReqState) SetTo ¶
func (o *OptUpdateAllTypesReqState) SetTo(v UpdateAllTypesReqState)
SetTo sets value to v.
func (*OptUpdateAllTypesReqState) UnmarshalJSON ¶
func (s *OptUpdateAllTypesReqState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateUserReqFavoriteCatBreed ¶
type OptUpdateUserReqFavoriteCatBreed struct { Value UpdateUserReqFavoriteCatBreed Set bool }
OptUpdateUserReqFavoriteCatBreed is optional UpdateUserReqFavoriteCatBreed.
func NewOptUpdateUserReqFavoriteCatBreed ¶
func NewOptUpdateUserReqFavoriteCatBreed(v UpdateUserReqFavoriteCatBreed) OptUpdateUserReqFavoriteCatBreed
NewOptUpdateUserReqFavoriteCatBreed returns new OptUpdateUserReqFavoriteCatBreed with value set to v.
func (*OptUpdateUserReqFavoriteCatBreed) Decode ¶
func (o *OptUpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteCatBreed from json.
func (OptUpdateUserReqFavoriteCatBreed) Encode ¶
func (o OptUpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteCatBreed as json.
func (OptUpdateUserReqFavoriteCatBreed) Get ¶
func (o OptUpdateUserReqFavoriteCatBreed) Get() (v UpdateUserReqFavoriteCatBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateUserReqFavoriteCatBreed) IsSet ¶
func (o OptUpdateUserReqFavoriteCatBreed) IsSet() bool
IsSet returns true if OptUpdateUserReqFavoriteCatBreed was set.
func (OptUpdateUserReqFavoriteCatBreed) MarshalJSON ¶
func (s OptUpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUpdateUserReqFavoriteCatBreed) Or ¶
func (o OptUpdateUserReqFavoriteCatBreed) Or(d UpdateUserReqFavoriteCatBreed) UpdateUserReqFavoriteCatBreed
Or returns value if set, or given parameter if does not.
func (*OptUpdateUserReqFavoriteCatBreed) Reset ¶
func (o *OptUpdateUserReqFavoriteCatBreed) Reset()
Reset unsets value.
func (*OptUpdateUserReqFavoriteCatBreed) SetTo ¶
func (o *OptUpdateUserReqFavoriteCatBreed) SetTo(v UpdateUserReqFavoriteCatBreed)
SetTo sets value to v.
func (*OptUpdateUserReqFavoriteCatBreed) UnmarshalJSON ¶
func (s *OptUpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateUserReqFavoriteDogBreed ¶
type OptUpdateUserReqFavoriteDogBreed struct { Value UpdateUserReqFavoriteDogBreed Set bool }
OptUpdateUserReqFavoriteDogBreed is optional UpdateUserReqFavoriteDogBreed.
func NewOptUpdateUserReqFavoriteDogBreed ¶
func NewOptUpdateUserReqFavoriteDogBreed(v UpdateUserReqFavoriteDogBreed) OptUpdateUserReqFavoriteDogBreed
NewOptUpdateUserReqFavoriteDogBreed returns new OptUpdateUserReqFavoriteDogBreed with value set to v.
func (*OptUpdateUserReqFavoriteDogBreed) Decode ¶
func (o *OptUpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteDogBreed from json.
func (OptUpdateUserReqFavoriteDogBreed) Encode ¶
func (o OptUpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteDogBreed as json.
func (OptUpdateUserReqFavoriteDogBreed) Get ¶
func (o OptUpdateUserReqFavoriteDogBreed) Get() (v UpdateUserReqFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateUserReqFavoriteDogBreed) IsSet ¶
func (o OptUpdateUserReqFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUpdateUserReqFavoriteDogBreed was set.
func (OptUpdateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s OptUpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUpdateUserReqFavoriteDogBreed) Or ¶
func (o OptUpdateUserReqFavoriteDogBreed) Or(d UpdateUserReqFavoriteDogBreed) UpdateUserReqFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptUpdateUserReqFavoriteDogBreed) Reset ¶
func (o *OptUpdateUserReqFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUpdateUserReqFavoriteDogBreed) SetTo ¶
func (o *OptUpdateUserReqFavoriteDogBreed) SetTo(v UpdateUserReqFavoriteDogBreed)
SetTo sets value to v.
func (*OptUpdateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUpdateUserReqFavoriteFishBreed ¶
type OptUpdateUserReqFavoriteFishBreed struct { Value UpdateUserReqFavoriteFishBreed Set bool }
OptUpdateUserReqFavoriteFishBreed is optional UpdateUserReqFavoriteFishBreed.
func NewOptUpdateUserReqFavoriteFishBreed ¶
func NewOptUpdateUserReqFavoriteFishBreed(v UpdateUserReqFavoriteFishBreed) OptUpdateUserReqFavoriteFishBreed
NewOptUpdateUserReqFavoriteFishBreed returns new OptUpdateUserReqFavoriteFishBreed with value set to v.
func (*OptUpdateUserReqFavoriteFishBreed) Decode ¶
func (o *OptUpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteFishBreed from json.
func (OptUpdateUserReqFavoriteFishBreed) Encode ¶
func (o OptUpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteFishBreed as json.
func (OptUpdateUserReqFavoriteFishBreed) Get ¶
func (o OptUpdateUserReqFavoriteFishBreed) Get() (v UpdateUserReqFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUpdateUserReqFavoriteFishBreed) IsSet ¶
func (o OptUpdateUserReqFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUpdateUserReqFavoriteFishBreed was set.
func (OptUpdateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s OptUpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUpdateUserReqFavoriteFishBreed) Or ¶
func (o OptUpdateUserReqFavoriteFishBreed) Or(d UpdateUserReqFavoriteFishBreed) UpdateUserReqFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUpdateUserReqFavoriteFishBreed) Reset ¶
func (o *OptUpdateUserReqFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUpdateUserReqFavoriteFishBreed) SetTo ¶
func (o *OptUpdateUserReqFavoriteFishBreed) SetTo(v UpdateUserReqFavoriteFishBreed)
SetTo sets value to v.
func (*OptUpdateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserBestFriendReadFavoriteDogBreed ¶
type OptUserBestFriendReadFavoriteDogBreed struct { Value UserBestFriendReadFavoriteDogBreed Set bool }
OptUserBestFriendReadFavoriteDogBreed is optional UserBestFriendReadFavoriteDogBreed.
func NewOptUserBestFriendReadFavoriteDogBreed ¶
func NewOptUserBestFriendReadFavoriteDogBreed(v UserBestFriendReadFavoriteDogBreed) OptUserBestFriendReadFavoriteDogBreed
NewOptUserBestFriendReadFavoriteDogBreed returns new OptUserBestFriendReadFavoriteDogBreed with value set to v.
func (*OptUserBestFriendReadFavoriteDogBreed) Decode ¶
func (o *OptUserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteDogBreed from json.
func (OptUserBestFriendReadFavoriteDogBreed) Encode ¶
func (o OptUserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteDogBreed as json.
func (OptUserBestFriendReadFavoriteDogBreed) Get ¶
func (o OptUserBestFriendReadFavoriteDogBreed) Get() (v UserBestFriendReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserBestFriendReadFavoriteDogBreed) IsSet ¶
func (o OptUserBestFriendReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserBestFriendReadFavoriteDogBreed was set.
func (OptUserBestFriendReadFavoriteDogBreed) MarshalJSON ¶
func (s OptUserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserBestFriendReadFavoriteDogBreed) Or ¶
func (o OptUserBestFriendReadFavoriteDogBreed) Or(d UserBestFriendReadFavoriteDogBreed) UserBestFriendReadFavoriteDogBreed
Or returns value if set, or given parameter if does not.
func (*OptUserBestFriendReadFavoriteDogBreed) Reset ¶
func (o *OptUserBestFriendReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserBestFriendReadFavoriteDogBreed) SetTo ¶
func (o *OptUserBestFriendReadFavoriteDogBreed) SetTo(v UserBestFriendReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserBestFriendReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserBestFriendReadFavoriteFishBreed ¶
type OptUserBestFriendReadFavoriteFishBreed struct { Value UserBestFriendReadFavoriteFishBreed Set bool }
OptUserBestFriendReadFavoriteFishBreed is optional UserBestFriendReadFavoriteFishBreed.
func NewOptUserBestFriendReadFavoriteFishBreed ¶
func NewOptUserBestFriendReadFavoriteFishBreed(v UserBestFriendReadFavoriteFishBreed) OptUserBestFriendReadFavoriteFishBreed
NewOptUserBestFriendReadFavoriteFishBreed returns new OptUserBestFriendReadFavoriteFishBreed with value set to v.
func (*OptUserBestFriendReadFavoriteFishBreed) Decode ¶
func (o *OptUserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteFishBreed from json.
func (OptUserBestFriendReadFavoriteFishBreed) Encode ¶
func (o OptUserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteFishBreed as json.
func (OptUserBestFriendReadFavoriteFishBreed) Get ¶
func (o OptUserBestFriendReadFavoriteFishBreed) Get() (v UserBestFriendReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserBestFriendReadFavoriteFishBreed) IsSet ¶
func (o OptUserBestFriendReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserBestFriendReadFavoriteFishBreed was set.
func (OptUserBestFriendReadFavoriteFishBreed) MarshalJSON ¶
func (s OptUserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserBestFriendReadFavoriteFishBreed) Or ¶
func (o OptUserBestFriendReadFavoriteFishBreed) Or(d UserBestFriendReadFavoriteFishBreed) UserBestFriendReadFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUserBestFriendReadFavoriteFishBreed) Reset ¶
func (o *OptUserBestFriendReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserBestFriendReadFavoriteFishBreed) SetTo ¶
func (o *OptUserBestFriendReadFavoriteFishBreed) SetTo(v UserBestFriendReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserBestFriendReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserCreateFavoriteDogBreed ¶
type OptUserCreateFavoriteDogBreed struct { Value UserCreateFavoriteDogBreed Set bool }
OptUserCreateFavoriteDogBreed is optional UserCreateFavoriteDogBreed.
func NewOptUserCreateFavoriteDogBreed ¶
func NewOptUserCreateFavoriteDogBreed(v UserCreateFavoriteDogBreed) OptUserCreateFavoriteDogBreed
NewOptUserCreateFavoriteDogBreed returns new OptUserCreateFavoriteDogBreed with value set to v.
func (*OptUserCreateFavoriteDogBreed) Decode ¶
func (o *OptUserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteDogBreed from json.
func (OptUserCreateFavoriteDogBreed) Encode ¶
func (o OptUserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteDogBreed as json.
func (OptUserCreateFavoriteDogBreed) Get ¶
func (o OptUserCreateFavoriteDogBreed) Get() (v UserCreateFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserCreateFavoriteDogBreed) IsSet ¶
func (o OptUserCreateFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserCreateFavoriteDogBreed was set.
func (OptUserCreateFavoriteDogBreed) MarshalJSON ¶
func (s OptUserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserCreateFavoriteDogBreed) Reset ¶
func (o *OptUserCreateFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserCreateFavoriteDogBreed) SetTo ¶
func (o *OptUserCreateFavoriteDogBreed) SetTo(v UserCreateFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserCreateFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserCreateFavoriteFishBreed ¶
type OptUserCreateFavoriteFishBreed struct { Value UserCreateFavoriteFishBreed Set bool }
OptUserCreateFavoriteFishBreed is optional UserCreateFavoriteFishBreed.
func NewOptUserCreateFavoriteFishBreed ¶
func NewOptUserCreateFavoriteFishBreed(v UserCreateFavoriteFishBreed) OptUserCreateFavoriteFishBreed
NewOptUserCreateFavoriteFishBreed returns new OptUserCreateFavoriteFishBreed with value set to v.
func (*OptUserCreateFavoriteFishBreed) Decode ¶
func (o *OptUserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteFishBreed from json.
func (OptUserCreateFavoriteFishBreed) Encode ¶
func (o OptUserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteFishBreed as json.
func (OptUserCreateFavoriteFishBreed) Get ¶
func (o OptUserCreateFavoriteFishBreed) Get() (v UserCreateFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserCreateFavoriteFishBreed) IsSet ¶
func (o OptUserCreateFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserCreateFavoriteFishBreed was set.
func (OptUserCreateFavoriteFishBreed) MarshalJSON ¶
func (s OptUserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserCreateFavoriteFishBreed) Or ¶
func (o OptUserCreateFavoriteFishBreed) Or(d UserCreateFavoriteFishBreed) UserCreateFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUserCreateFavoriteFishBreed) Reset ¶
func (o *OptUserCreateFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserCreateFavoriteFishBreed) SetTo ¶
func (o *OptUserCreateFavoriteFishBreed) SetTo(v UserCreateFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserCreateFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserListFavoriteDogBreed ¶
type OptUserListFavoriteDogBreed struct { Value UserListFavoriteDogBreed Set bool }
OptUserListFavoriteDogBreed is optional UserListFavoriteDogBreed.
func NewOptUserListFavoriteDogBreed ¶
func NewOptUserListFavoriteDogBreed(v UserListFavoriteDogBreed) OptUserListFavoriteDogBreed
NewOptUserListFavoriteDogBreed returns new OptUserListFavoriteDogBreed with value set to v.
func (*OptUserListFavoriteDogBreed) Decode ¶
func (o *OptUserListFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteDogBreed from json.
func (OptUserListFavoriteDogBreed) Encode ¶
func (o OptUserListFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteDogBreed as json.
func (OptUserListFavoriteDogBreed) Get ¶
func (o OptUserListFavoriteDogBreed) Get() (v UserListFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserListFavoriteDogBreed) IsSet ¶
func (o OptUserListFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserListFavoriteDogBreed was set.
func (OptUserListFavoriteDogBreed) MarshalJSON ¶
func (s OptUserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserListFavoriteDogBreed) Reset ¶
func (o *OptUserListFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserListFavoriteDogBreed) SetTo ¶
func (o *OptUserListFavoriteDogBreed) SetTo(v UserListFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserListFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserListFavoriteFishBreed ¶
type OptUserListFavoriteFishBreed struct { Value UserListFavoriteFishBreed Set bool }
OptUserListFavoriteFishBreed is optional UserListFavoriteFishBreed.
func NewOptUserListFavoriteFishBreed ¶
func NewOptUserListFavoriteFishBreed(v UserListFavoriteFishBreed) OptUserListFavoriteFishBreed
NewOptUserListFavoriteFishBreed returns new OptUserListFavoriteFishBreed with value set to v.
func (*OptUserListFavoriteFishBreed) Decode ¶
func (o *OptUserListFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteFishBreed from json.
func (OptUserListFavoriteFishBreed) Encode ¶
func (o OptUserListFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteFishBreed as json.
func (OptUserListFavoriteFishBreed) Get ¶
func (o OptUserListFavoriteFishBreed) Get() (v UserListFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserListFavoriteFishBreed) IsSet ¶
func (o OptUserListFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserListFavoriteFishBreed was set.
func (OptUserListFavoriteFishBreed) MarshalJSON ¶
func (s OptUserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserListFavoriteFishBreed) Reset ¶
func (o *OptUserListFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserListFavoriteFishBreed) SetTo ¶
func (o *OptUserListFavoriteFishBreed) SetTo(v UserListFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserListFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserReadFavoriteDogBreed ¶
type OptUserReadFavoriteDogBreed struct { Value UserReadFavoriteDogBreed Set bool }
OptUserReadFavoriteDogBreed is optional UserReadFavoriteDogBreed.
func NewOptUserReadFavoriteDogBreed ¶
func NewOptUserReadFavoriteDogBreed(v UserReadFavoriteDogBreed) OptUserReadFavoriteDogBreed
NewOptUserReadFavoriteDogBreed returns new OptUserReadFavoriteDogBreed with value set to v.
func (*OptUserReadFavoriteDogBreed) Decode ¶
func (o *OptUserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteDogBreed from json.
func (OptUserReadFavoriteDogBreed) Encode ¶
func (o OptUserReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteDogBreed as json.
func (OptUserReadFavoriteDogBreed) Get ¶
func (o OptUserReadFavoriteDogBreed) Get() (v UserReadFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserReadFavoriteDogBreed) IsSet ¶
func (o OptUserReadFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserReadFavoriteDogBreed was set.
func (OptUserReadFavoriteDogBreed) MarshalJSON ¶
func (s OptUserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserReadFavoriteDogBreed) Reset ¶
func (o *OptUserReadFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserReadFavoriteDogBreed) SetTo ¶
func (o *OptUserReadFavoriteDogBreed) SetTo(v UserReadFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserReadFavoriteFishBreed ¶
type OptUserReadFavoriteFishBreed struct { Value UserReadFavoriteFishBreed Set bool }
OptUserReadFavoriteFishBreed is optional UserReadFavoriteFishBreed.
func NewOptUserReadFavoriteFishBreed ¶
func NewOptUserReadFavoriteFishBreed(v UserReadFavoriteFishBreed) OptUserReadFavoriteFishBreed
NewOptUserReadFavoriteFishBreed returns new OptUserReadFavoriteFishBreed with value set to v.
func (*OptUserReadFavoriteFishBreed) Decode ¶
func (o *OptUserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteFishBreed from json.
func (OptUserReadFavoriteFishBreed) Encode ¶
func (o OptUserReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteFishBreed as json.
func (OptUserReadFavoriteFishBreed) Get ¶
func (o OptUserReadFavoriteFishBreed) Get() (v UserReadFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserReadFavoriteFishBreed) IsSet ¶
func (o OptUserReadFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserReadFavoriteFishBreed was set.
func (OptUserReadFavoriteFishBreed) MarshalJSON ¶
func (s OptUserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserReadFavoriteFishBreed) Reset ¶
func (o *OptUserReadFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserReadFavoriteFishBreed) SetTo ¶
func (o *OptUserReadFavoriteFishBreed) SetTo(v UserReadFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserUpdateFavoriteDogBreed ¶
type OptUserUpdateFavoriteDogBreed struct { Value UserUpdateFavoriteDogBreed Set bool }
OptUserUpdateFavoriteDogBreed is optional UserUpdateFavoriteDogBreed.
func NewOptUserUpdateFavoriteDogBreed ¶
func NewOptUserUpdateFavoriteDogBreed(v UserUpdateFavoriteDogBreed) OptUserUpdateFavoriteDogBreed
NewOptUserUpdateFavoriteDogBreed returns new OptUserUpdateFavoriteDogBreed with value set to v.
func (*OptUserUpdateFavoriteDogBreed) Decode ¶
func (o *OptUserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteDogBreed from json.
func (OptUserUpdateFavoriteDogBreed) Encode ¶
func (o OptUserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteDogBreed as json.
func (OptUserUpdateFavoriteDogBreed) Get ¶
func (o OptUserUpdateFavoriteDogBreed) Get() (v UserUpdateFavoriteDogBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserUpdateFavoriteDogBreed) IsSet ¶
func (o OptUserUpdateFavoriteDogBreed) IsSet() bool
IsSet returns true if OptUserUpdateFavoriteDogBreed was set.
func (OptUserUpdateFavoriteDogBreed) MarshalJSON ¶
func (s OptUserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserUpdateFavoriteDogBreed) Reset ¶
func (o *OptUserUpdateFavoriteDogBreed) Reset()
Reset unsets value.
func (*OptUserUpdateFavoriteDogBreed) SetTo ¶
func (o *OptUserUpdateFavoriteDogBreed) SetTo(v UserUpdateFavoriteDogBreed)
SetTo sets value to v.
func (*OptUserUpdateFavoriteDogBreed) UnmarshalJSON ¶
func (s *OptUserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserUpdateFavoriteFishBreed ¶
type OptUserUpdateFavoriteFishBreed struct { Value UserUpdateFavoriteFishBreed Set bool }
OptUserUpdateFavoriteFishBreed is optional UserUpdateFavoriteFishBreed.
func NewOptUserUpdateFavoriteFishBreed ¶
func NewOptUserUpdateFavoriteFishBreed(v UserUpdateFavoriteFishBreed) OptUserUpdateFavoriteFishBreed
NewOptUserUpdateFavoriteFishBreed returns new OptUserUpdateFavoriteFishBreed with value set to v.
func (*OptUserUpdateFavoriteFishBreed) Decode ¶
func (o *OptUserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteFishBreed from json.
func (OptUserUpdateFavoriteFishBreed) Encode ¶
func (o OptUserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteFishBreed as json.
func (OptUserUpdateFavoriteFishBreed) Get ¶
func (o OptUserUpdateFavoriteFishBreed) Get() (v UserUpdateFavoriteFishBreed, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserUpdateFavoriteFishBreed) IsSet ¶
func (o OptUserUpdateFavoriteFishBreed) IsSet() bool
IsSet returns true if OptUserUpdateFavoriteFishBreed was set.
func (OptUserUpdateFavoriteFishBreed) MarshalJSON ¶
func (s OptUserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserUpdateFavoriteFishBreed) Or ¶
func (o OptUserUpdateFavoriteFishBreed) Or(d UserUpdateFavoriteFishBreed) UserUpdateFavoriteFishBreed
Or returns value if set, or given parameter if does not.
func (*OptUserUpdateFavoriteFishBreed) Reset ¶
func (o *OptUserUpdateFavoriteFishBreed) Reset()
Reset unsets value.
func (*OptUserUpdateFavoriteFishBreed) SetTo ¶
func (o *OptUserUpdateFavoriteFishBreed) SetTo(v UserUpdateFavoriteFishBreed)
SetTo sets value to v.
func (*OptUserUpdateFavoriteFishBreed) UnmarshalJSON ¶
func (s *OptUserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) Option
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
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 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 WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) Option
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) Option
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) Option
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
WithPathPrefix specifies server path prefix.
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 PetCategoriesList ¶
type PetCategoriesList struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/Pet_CategoriesList
func NewPetCategoriesList ¶
func NewPetCategoriesList(e *ent.Category) *PetCategoriesList
func NewPetCategoriesLists ¶
func NewPetCategoriesLists(es []*ent.Category) []PetCategoriesList
func (*PetCategoriesList) Decode ¶
func (s *PetCategoriesList) Decode(d *jx.Decoder) error
Decode decodes PetCategoriesList from json.
func (*PetCategoriesList) Elem ¶
func (c *PetCategoriesList) Elem() PetCategoriesList
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) GetReadonly ¶
func (s PetCategoriesList) GetReadonly() OptString
GetReadonly returns the value of Readonly.
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) SetReadonly ¶
func (s *PetCategoriesList) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
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"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` Categories []PetCreateCategories `json:"categories"` Owner PetCreateOwner `json:"owner"` }
Ref: #/components/schemas/PetCreate
func NewPetCreate ¶
func NewPetCreates ¶
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 ¶
type PetCreateCategories struct { ID int `json:"id"` Name string `json:"name"` Readonly OptString `json:"readonly"` }
Ref: #/components/schemas/PetCreate_Categories
func NewPetCreateCategories ¶
func NewPetCreateCategories(e *ent.Category) *PetCreateCategories
func NewPetCreateCategoriesSlice ¶
func NewPetCreateCategoriesSlice(es []*ent.Category) []PetCreateCategories
func (*PetCreateCategories) Decode ¶
func (s *PetCreateCategories) Decode(d *jx.Decoder) error
Decode decodes PetCreateCategories from json.
func (*PetCreateCategories) Elem ¶
func (c *PetCreateCategories) Elem() PetCreateCategories
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) GetReadonly ¶
func (s PetCreateCategories) GetReadonly() OptString
GetReadonly returns the value of Readonly.
func (PetCreateCategories) MarshalJSON ¶
func (s PetCreateCategories) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
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) SetReadonly ¶
func (s *PetCreateCategories) SetReadonly(val OptString)
SetReadonly sets the value of Readonly.
func (*PetCreateCategories) UnmarshalJSON ¶
func (s *PetCreateCategories) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PetCreateOwner ¶
type PetCreateOwner struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed PetCreateOwnerFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptPetCreateOwnerFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptPetCreateOwnerFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/PetCreate_Owner
func NewPetCreateOwner ¶
func NewPetCreateOwner(e *ent.User) *PetCreateOwner
func NewPetCreateOwners ¶
func NewPetCreateOwners(es []*ent.User) []PetCreateOwner
func (*PetCreateOwner) Decode ¶
func (s *PetCreateOwner) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwner from json.
func (*PetCreateOwner) Elem ¶
func (u *PetCreateOwner) Elem() PetCreateOwner
func (PetCreateOwner) Encode ¶
func (s PetCreateOwner) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (PetCreateOwner) GetAge ¶
func (s PetCreateOwner) GetAge() int64
GetAge returns the value of Age.
func (PetCreateOwner) GetFavoriteCatBreed ¶
func (s PetCreateOwner) GetFavoriteCatBreed() PetCreateOwnerFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (PetCreateOwner) GetFavoriteDogBreed ¶
func (s PetCreateOwner) GetFavoriteDogBreed() OptPetCreateOwnerFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (PetCreateOwner) GetFavoriteFishBreed ¶
func (s PetCreateOwner) GetFavoriteFishBreed() OptPetCreateOwnerFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (PetCreateOwner) GetHeight ¶
func (s PetCreateOwner) GetHeight() OptInt64
GetHeight returns the value of Height.
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 int64)
SetAge sets the value of Age.
func (*PetCreateOwner) SetFavoriteCatBreed ¶
func (s *PetCreateOwner) SetFavoriteCatBreed(val PetCreateOwnerFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*PetCreateOwner) SetFavoriteDogBreed ¶
func (s *PetCreateOwner) SetFavoriteDogBreed(val OptPetCreateOwnerFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*PetCreateOwner) SetFavoriteFishBreed ¶
func (s *PetCreateOwner) SetFavoriteFishBreed(val OptPetCreateOwnerFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*PetCreateOwner) SetHeight ¶
func (s *PetCreateOwner) SetHeight(val OptInt64)
SetHeight sets the value of Height.
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.
func (PetCreateOwner) Validate ¶
func (s PetCreateOwner) Validate() error
type PetCreateOwnerFavoriteCatBreed ¶
type PetCreateOwnerFavoriteCatBreed string
const ( PetCreateOwnerFavoriteCatBreedSiamese PetCreateOwnerFavoriteCatBreed = "siamese" PetCreateOwnerFavoriteCatBreedBengal PetCreateOwnerFavoriteCatBreed = "bengal" PetCreateOwnerFavoriteCatBreedLion PetCreateOwnerFavoriteCatBreed = "lion" PetCreateOwnerFavoriteCatBreedTiger PetCreateOwnerFavoriteCatBreed = "tiger" PetCreateOwnerFavoriteCatBreedLeopard PetCreateOwnerFavoriteCatBreed = "leopard" PetCreateOwnerFavoriteCatBreedOther PetCreateOwnerFavoriteCatBreed = "other" )
func (*PetCreateOwnerFavoriteCatBreed) Decode ¶
func (s *PetCreateOwnerFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteCatBreed from json.
func (PetCreateOwnerFavoriteCatBreed) Encode ¶
func (s PetCreateOwnerFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteCatBreed as json.
func (PetCreateOwnerFavoriteCatBreed) MarshalJSON ¶
func (s PetCreateOwnerFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateOwnerFavoriteCatBreed) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PetCreateOwnerFavoriteCatBreed) Validate ¶
func (s PetCreateOwnerFavoriteCatBreed) Validate() error
type PetCreateOwnerFavoriteDogBreed ¶
type PetCreateOwnerFavoriteDogBreed string
const (
PetCreateOwnerFavoriteDogBreedKuro PetCreateOwnerFavoriteDogBreed = "Kuro"
)
func (*PetCreateOwnerFavoriteDogBreed) Decode ¶
func (s *PetCreateOwnerFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteDogBreed from json.
func (PetCreateOwnerFavoriteDogBreed) Encode ¶
func (s PetCreateOwnerFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteDogBreed as json.
func (PetCreateOwnerFavoriteDogBreed) MarshalJSON ¶
func (s PetCreateOwnerFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateOwnerFavoriteDogBreed) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PetCreateOwnerFavoriteDogBreed) Validate ¶
func (s PetCreateOwnerFavoriteDogBreed) Validate() error
type PetCreateOwnerFavoriteFishBreed ¶
type PetCreateOwnerFavoriteFishBreed string
const ( PetCreateOwnerFavoriteFishBreedGold PetCreateOwnerFavoriteFishBreed = "gold" PetCreateOwnerFavoriteFishBreedKoi PetCreateOwnerFavoriteFishBreed = "koi" PetCreateOwnerFavoriteFishBreedShark PetCreateOwnerFavoriteFishBreed = "shark" )
func (*PetCreateOwnerFavoriteFishBreed) Decode ¶
func (s *PetCreateOwnerFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetCreateOwnerFavoriteFishBreed from json.
func (PetCreateOwnerFavoriteFishBreed) Encode ¶
func (s PetCreateOwnerFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetCreateOwnerFavoriteFishBreed as json.
func (PetCreateOwnerFavoriteFishBreed) MarshalJSON ¶
func (s PetCreateOwnerFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetCreateOwnerFavoriteFishBreed) UnmarshalJSON ¶
func (s *PetCreateOwnerFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PetCreateOwnerFavoriteFishBreed) Validate ¶
func (s PetCreateOwnerFavoriteFishBreed) Validate() error
type PetFriendsList ¶
type PetFriendsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/Pet_FriendsList
func NewPetFriendsList ¶
func NewPetFriendsList(e *ent.Pet) *PetFriendsList
func NewPetFriendsLists ¶
func NewPetFriendsLists(es []*ent.Pet) []PetFriendsList
func (*PetFriendsList) Decode ¶
func (s *PetFriendsList) Decode(d *jx.Decoder) error
Decode decodes PetFriendsList from json.
func (*PetFriendsList) Elem ¶
func (pe *PetFriendsList) Elem() PetFriendsList
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) GetHeight ¶
func (s PetFriendsList) GetHeight() OptInt
GetHeight returns the value of Height.
func (PetFriendsList) GetName ¶
func (s PetFriendsList) GetName() string
GetName returns the value of Name.
func (PetFriendsList) GetTagID ¶
func (s PetFriendsList) GetTagID() []byte
GetTagID returns the value of TagID.
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) SetHeight ¶
func (s *PetFriendsList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*PetFriendsList) SetName ¶
func (s *PetFriendsList) SetName(val string)
SetName sets the value of Name.
func (*PetFriendsList) SetTagID ¶
func (s *PetFriendsList) SetTagID(val []byte)
SetTagID sets the value of TagID.
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"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/PetList
func NewPetList ¶
func NewPetLists ¶
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 PetOwnerRead ¶
type PetOwnerRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed PetOwnerReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptPetOwnerReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptPetOwnerReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/Pet_OwnerRead
func NewPetOwnerRead ¶
func NewPetOwnerRead(e *ent.User) *PetOwnerRead
func NewPetOwnerReads ¶
func NewPetOwnerReads(es []*ent.User) []PetOwnerRead
func (*PetOwnerRead) Decode ¶
func (s *PetOwnerRead) Decode(d *jx.Decoder) error
Decode decodes PetOwnerRead from json.
func (*PetOwnerRead) Elem ¶
func (u *PetOwnerRead) Elem() PetOwnerRead
func (PetOwnerRead) Encode ¶
func (s PetOwnerRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (PetOwnerRead) GetFavoriteCatBreed ¶
func (s PetOwnerRead) GetFavoriteCatBreed() PetOwnerReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (PetOwnerRead) GetFavoriteDogBreed ¶
func (s PetOwnerRead) GetFavoriteDogBreed() OptPetOwnerReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (PetOwnerRead) GetFavoriteFishBreed ¶
func (s PetOwnerRead) GetFavoriteFishBreed() OptPetOwnerReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (PetOwnerRead) GetHeight ¶
func (s PetOwnerRead) GetHeight() OptInt64
GetHeight returns the value of Height.
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) SetAge ¶
func (s *PetOwnerRead) SetAge(val int64)
SetAge sets the value of Age.
func (*PetOwnerRead) SetFavoriteCatBreed ¶
func (s *PetOwnerRead) SetFavoriteCatBreed(val PetOwnerReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*PetOwnerRead) SetFavoriteDogBreed ¶
func (s *PetOwnerRead) SetFavoriteDogBreed(val OptPetOwnerReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*PetOwnerRead) SetFavoriteFishBreed ¶
func (s *PetOwnerRead) SetFavoriteFishBreed(val OptPetOwnerReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*PetOwnerRead) SetHeight ¶
func (s *PetOwnerRead) SetHeight(val OptInt64)
SetHeight sets the value of Height.
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.
func (PetOwnerRead) Validate ¶
func (s PetOwnerRead) Validate() error
type PetOwnerReadFavoriteCatBreed ¶
type PetOwnerReadFavoriteCatBreed string
const ( PetOwnerReadFavoriteCatBreedSiamese PetOwnerReadFavoriteCatBreed = "siamese" PetOwnerReadFavoriteCatBreedBengal PetOwnerReadFavoriteCatBreed = "bengal" PetOwnerReadFavoriteCatBreedLion PetOwnerReadFavoriteCatBreed = "lion" PetOwnerReadFavoriteCatBreedTiger PetOwnerReadFavoriteCatBreed = "tiger" PetOwnerReadFavoriteCatBreedLeopard PetOwnerReadFavoriteCatBreed = "leopard" PetOwnerReadFavoriteCatBreedOther PetOwnerReadFavoriteCatBreed = "other" )
func (*PetOwnerReadFavoriteCatBreed) Decode ¶
func (s *PetOwnerReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteCatBreed from json.
func (PetOwnerReadFavoriteCatBreed) Encode ¶
func (s PetOwnerReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteCatBreed as json.
func (PetOwnerReadFavoriteCatBreed) MarshalJSON ¶
func (s PetOwnerReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetOwnerReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PetOwnerReadFavoriteCatBreed) Validate ¶
func (s PetOwnerReadFavoriteCatBreed) Validate() error
type PetOwnerReadFavoriteDogBreed ¶
type PetOwnerReadFavoriteDogBreed string
const (
PetOwnerReadFavoriteDogBreedKuro PetOwnerReadFavoriteDogBreed = "Kuro"
)
func (*PetOwnerReadFavoriteDogBreed) Decode ¶
func (s *PetOwnerReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteDogBreed from json.
func (PetOwnerReadFavoriteDogBreed) Encode ¶
func (s PetOwnerReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteDogBreed as json.
func (PetOwnerReadFavoriteDogBreed) MarshalJSON ¶
func (s PetOwnerReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetOwnerReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PetOwnerReadFavoriteDogBreed) Validate ¶
func (s PetOwnerReadFavoriteDogBreed) Validate() error
type PetOwnerReadFavoriteFishBreed ¶
type PetOwnerReadFavoriteFishBreed string
const ( PetOwnerReadFavoriteFishBreedGold PetOwnerReadFavoriteFishBreed = "gold" PetOwnerReadFavoriteFishBreedKoi PetOwnerReadFavoriteFishBreed = "koi" PetOwnerReadFavoriteFishBreedShark PetOwnerReadFavoriteFishBreed = "shark" )
func (*PetOwnerReadFavoriteFishBreed) Decode ¶
func (s *PetOwnerReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes PetOwnerReadFavoriteFishBreed from json.
func (PetOwnerReadFavoriteFishBreed) Encode ¶
func (s PetOwnerReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes PetOwnerReadFavoriteFishBreed as json.
func (PetOwnerReadFavoriteFishBreed) MarshalJSON ¶
func (s PetOwnerReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PetOwnerReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *PetOwnerReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PetOwnerReadFavoriteFishBreed) Validate ¶
func (s PetOwnerReadFavoriteFishBreed) Validate() error
type PetRead ¶
type PetRead struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/PetRead
func NewPetRead ¶
func NewPetReads ¶
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"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/PetUpdate
func NewPetUpdate ¶
func NewPetUpdates ¶
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 ¶
type R400 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (R400) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R400) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R404 ¶
type R404 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (R404) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R404) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R409 ¶
type R409 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (R409) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R409) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type R500 ¶
type R500 struct { Code int `json:"code"` Status string `json:"status"` Errors jx.Raw `json:"errors"` }
func (R500) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*R500) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ReadAllTypesParams ¶
type ReadAllTypesParams struct { // ID of the AllTypes. ID int64 }
type ReadAllTypesRes ¶
type ReadAllTypesRes interface {
// contains filtered or unexported methods
}
type ReadCategoryParams ¶
type ReadCategoryParams struct { // ID of the Category. ID int }
type ReadCategoryRes ¶
type ReadCategoryRes interface {
// contains filtered or unexported methods
}
type ReadPetOwnerParams ¶
type ReadPetOwnerParams struct { // ID of the Pet. ID int }
type ReadPetOwnerRes ¶
type ReadPetOwnerRes interface {
// contains filtered or unexported methods
}
type ReadPetParams ¶
type ReadPetParams struct { // ID of the Pet. ID int }
type ReadPetRes ¶
type ReadPetRes interface {
// contains filtered or unexported methods
}
type ReadUserBestFriendParams ¶
type ReadUserBestFriendParams struct { // ID of the User. ID int }
type ReadUserBestFriendRes ¶
type ReadUserBestFriendRes interface {
// contains filtered or unexported methods
}
type ReadUserParams ¶
type ReadUserParams struct { // ID of the User. ID int }
type ReadUserRes ¶
type ReadUserRes 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.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) CreateAllTypes ¶
func (UnimplementedHandler) CreateAllTypes(ctx context.Context, req CreateAllTypesReq) (r CreateAllTypesRes, _ error)
CreateAllTypes implements createAllTypes operation.
Creates a new AllTypes and persists it to storage.
POST /all-types
func (UnimplementedHandler) CreateCategory ¶
func (UnimplementedHandler) CreateCategory(ctx context.Context, req CreateCategoryReq) (r CreateCategoryRes, _ error)
CreateCategory implements createCategory operation.
Creates a new Category and persists it to storage.
POST /categories
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) CreateUser ¶
func (UnimplementedHandler) CreateUser(ctx context.Context, req CreateUserReq) (r CreateUserRes, _ error)
CreateUser implements createUser operation.
Creates a new User and persists it to storage.
POST /users
func (UnimplementedHandler) DeleteAllTypes ¶
func (UnimplementedHandler) DeleteAllTypes(ctx context.Context, params DeleteAllTypesParams) (r DeleteAllTypesRes, _ error)
DeleteAllTypes implements deleteAllTypes operation.
Deletes the AllTypes with the requested ID.
DELETE /all-types/{id}
func (UnimplementedHandler) DeleteCategory ¶
func (UnimplementedHandler) DeleteCategory(ctx context.Context, params DeleteCategoryParams) (r DeleteCategoryRes, _ error)
DeleteCategory implements deleteCategory operation.
Deletes the Category with the requested ID.
DELETE /categories/{id}
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) DeleteUser ¶
func (UnimplementedHandler) DeleteUser(ctx context.Context, params DeleteUserParams) (r DeleteUserRes, _ error)
DeleteUser implements deleteUser operation.
Deletes the User with the requested ID.
DELETE /users/{id}
func (UnimplementedHandler) ListAllTypes ¶
func (UnimplementedHandler) ListAllTypes(ctx context.Context, params ListAllTypesParams) (r ListAllTypesRes, _ error)
ListAllTypes implements listAllTypes operation.
List AllTypes.
GET /all-types
func (UnimplementedHandler) ListCategory ¶
func (UnimplementedHandler) ListCategory(ctx context.Context, params ListCategoryParams) (r ListCategoryRes, _ error)
ListCategory implements listCategory operation.
List Categories.
GET /categories
func (UnimplementedHandler) ListCategoryPets ¶
func (UnimplementedHandler) ListCategoryPets(ctx context.Context, params ListCategoryPetsParams) (r ListCategoryPetsRes, _ error)
ListCategoryPets implements listCategoryPets operation.
List attached Pets.
GET /categories/{id}/pets
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) ListUser ¶
func (UnimplementedHandler) ListUser(ctx context.Context, params ListUserParams) (r ListUserRes, _ error)
ListUser implements listUser operation.
List Users.
GET /users
func (UnimplementedHandler) ListUserPets ¶
func (UnimplementedHandler) ListUserPets(ctx context.Context, params ListUserPetsParams) (r ListUserPetsRes, _ error)
ListUserPets implements listUserPets operation.
List attached Pets.
GET /users/{id}/pets
func (UnimplementedHandler) ReadAllTypes ¶
func (UnimplementedHandler) ReadAllTypes(ctx context.Context, params ReadAllTypesParams) (r ReadAllTypesRes, _ error)
ReadAllTypes implements readAllTypes operation.
Finds the AllTypes with the requested ID and returns it.
GET /all-types/{id}
func (UnimplementedHandler) ReadCategory ¶
func (UnimplementedHandler) ReadCategory(ctx context.Context, params ReadCategoryParams) (r ReadCategoryRes, _ error)
ReadCategory implements readCategory operation.
Finds the Category with the requested ID and returns it.
GET /categories/{id}
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) ReadUser ¶
func (UnimplementedHandler) ReadUser(ctx context.Context, params ReadUserParams) (r ReadUserRes, _ error)
ReadUser implements readUser operation.
Finds the User with the requested ID and returns it.
GET /users/{id}
func (UnimplementedHandler) ReadUserBestFriend ¶
func (UnimplementedHandler) ReadUserBestFriend(ctx context.Context, params ReadUserBestFriendParams) (r ReadUserBestFriendRes, _ error)
ReadUserBestFriend implements readUserBestFriend operation.
Find the attached User of the User with the given ID.
GET /users/{id}/best-friend
func (UnimplementedHandler) UpdateAllTypes ¶
func (UnimplementedHandler) UpdateAllTypes(ctx context.Context, req UpdateAllTypesReq, params UpdateAllTypesParams) (r UpdateAllTypesRes, _ error)
UpdateAllTypes implements updateAllTypes operation.
Updates a AllTypes and persists changes to storage.
PATCH /all-types/{id}
func (UnimplementedHandler) UpdateCategory ¶
func (UnimplementedHandler) UpdateCategory(ctx context.Context, req UpdateCategoryReq, params UpdateCategoryParams) (r UpdateCategoryRes, _ error)
UpdateCategory implements updateCategory operation.
Updates a Category and persists changes to storage.
PATCH /categories/{id}
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}
func (UnimplementedHandler) UpdateUser ¶
func (UnimplementedHandler) UpdateUser(ctx context.Context, req UpdateUserReq, params UpdateUserParams) (r UpdateUserRes, _ error)
UpdateUser implements updateUser operation.
Updates a User and persists changes to storage.
PATCH /users/{id}
type UpdateAllTypesParams ¶
type UpdateAllTypesParams struct { // ID of the AllTypes. ID int64 }
type UpdateAllTypesReq ¶
type UpdateAllTypesReq struct { Int OptInt `json:"int"` Int8 OptInt32 `json:"int8"` Int16 OptInt32 `json:"int16"` Int32 OptInt32 `json:"int32"` Int64 OptInt64 `json:"int64"` Uint OptInt64 `json:"uint"` Uint8 OptInt32 `json:"uint8"` Uint16 OptInt32 `json:"uint16"` Uint32 OptInt64 `json:"uint32"` Uint64 OptInt64 `json:"uint64"` Float32 OptFloat32 `json:"float32"` Float64 OptFloat64 `json:"float64"` StringType OptString `json:"string_type"` Bool OptBool `json:"bool"` UUID OptUUID `json:"uuid"` Time OptDateTime `json:"time"` Text OptString `json:"text"` State OptUpdateAllTypesReqState `json:"state"` Bytes []byte `json:"bytes"` }
func (*UpdateAllTypesReq) Decode ¶
func (s *UpdateAllTypesReq) Decode(d *jx.Decoder) error
Decode decodes UpdateAllTypesReq from json.
func (UpdateAllTypesReq) Encode ¶
func (s UpdateAllTypesReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UpdateAllTypesReq) GetBool ¶
func (s UpdateAllTypesReq) GetBool() OptBool
GetBool returns the value of Bool.
func (UpdateAllTypesReq) GetBytes ¶
func (s UpdateAllTypesReq) GetBytes() []byte
GetBytes returns the value of Bytes.
func (UpdateAllTypesReq) GetFloat32 ¶
func (s UpdateAllTypesReq) GetFloat32() OptFloat32
GetFloat32 returns the value of Float32.
func (UpdateAllTypesReq) GetFloat64 ¶
func (s UpdateAllTypesReq) GetFloat64() OptFloat64
GetFloat64 returns the value of Float64.
func (UpdateAllTypesReq) GetInt ¶
func (s UpdateAllTypesReq) GetInt() OptInt
GetInt returns the value of Int.
func (UpdateAllTypesReq) GetInt16 ¶
func (s UpdateAllTypesReq) GetInt16() OptInt32
GetInt16 returns the value of Int16.
func (UpdateAllTypesReq) GetInt32 ¶
func (s UpdateAllTypesReq) GetInt32() OptInt32
GetInt32 returns the value of Int32.
func (UpdateAllTypesReq) GetInt64 ¶
func (s UpdateAllTypesReq) GetInt64() OptInt64
GetInt64 returns the value of Int64.
func (UpdateAllTypesReq) GetInt8 ¶
func (s UpdateAllTypesReq) GetInt8() OptInt32
GetInt8 returns the value of Int8.
func (UpdateAllTypesReq) GetState ¶
func (s UpdateAllTypesReq) GetState() OptUpdateAllTypesReqState
GetState returns the value of State.
func (UpdateAllTypesReq) GetStringType ¶
func (s UpdateAllTypesReq) GetStringType() OptString
GetStringType returns the value of StringType.
func (UpdateAllTypesReq) GetText ¶
func (s UpdateAllTypesReq) GetText() OptString
GetText returns the value of Text.
func (UpdateAllTypesReq) GetTime ¶
func (s UpdateAllTypesReq) GetTime() OptDateTime
GetTime returns the value of Time.
func (UpdateAllTypesReq) GetUUID ¶
func (s UpdateAllTypesReq) GetUUID() OptUUID
GetUUID returns the value of UUID.
func (UpdateAllTypesReq) GetUint ¶
func (s UpdateAllTypesReq) GetUint() OptInt64
GetUint returns the value of Uint.
func (UpdateAllTypesReq) GetUint16 ¶
func (s UpdateAllTypesReq) GetUint16() OptInt32
GetUint16 returns the value of Uint16.
func (UpdateAllTypesReq) GetUint32 ¶
func (s UpdateAllTypesReq) GetUint32() OptInt64
GetUint32 returns the value of Uint32.
func (UpdateAllTypesReq) GetUint64 ¶
func (s UpdateAllTypesReq) GetUint64() OptInt64
GetUint64 returns the value of Uint64.
func (UpdateAllTypesReq) GetUint8 ¶
func (s UpdateAllTypesReq) GetUint8() OptInt32
GetUint8 returns the value of Uint8.
func (UpdateAllTypesReq) MarshalJSON ¶
func (s UpdateAllTypesReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateAllTypesReq) SetBool ¶
func (s *UpdateAllTypesReq) SetBool(val OptBool)
SetBool sets the value of Bool.
func (*UpdateAllTypesReq) SetBytes ¶
func (s *UpdateAllTypesReq) SetBytes(val []byte)
SetBytes sets the value of Bytes.
func (*UpdateAllTypesReq) SetFloat32 ¶
func (s *UpdateAllTypesReq) SetFloat32(val OptFloat32)
SetFloat32 sets the value of Float32.
func (*UpdateAllTypesReq) SetFloat64 ¶
func (s *UpdateAllTypesReq) SetFloat64(val OptFloat64)
SetFloat64 sets the value of Float64.
func (*UpdateAllTypesReq) SetInt ¶
func (s *UpdateAllTypesReq) SetInt(val OptInt)
SetInt sets the value of Int.
func (*UpdateAllTypesReq) SetInt16 ¶
func (s *UpdateAllTypesReq) SetInt16(val OptInt32)
SetInt16 sets the value of Int16.
func (*UpdateAllTypesReq) SetInt32 ¶
func (s *UpdateAllTypesReq) SetInt32(val OptInt32)
SetInt32 sets the value of Int32.
func (*UpdateAllTypesReq) SetInt64 ¶
func (s *UpdateAllTypesReq) SetInt64(val OptInt64)
SetInt64 sets the value of Int64.
func (*UpdateAllTypesReq) SetInt8 ¶
func (s *UpdateAllTypesReq) SetInt8(val OptInt32)
SetInt8 sets the value of Int8.
func (*UpdateAllTypesReq) SetState ¶
func (s *UpdateAllTypesReq) SetState(val OptUpdateAllTypesReqState)
SetState sets the value of State.
func (*UpdateAllTypesReq) SetStringType ¶
func (s *UpdateAllTypesReq) SetStringType(val OptString)
SetStringType sets the value of StringType.
func (*UpdateAllTypesReq) SetText ¶
func (s *UpdateAllTypesReq) SetText(val OptString)
SetText sets the value of Text.
func (*UpdateAllTypesReq) SetTime ¶
func (s *UpdateAllTypesReq) SetTime(val OptDateTime)
SetTime sets the value of Time.
func (*UpdateAllTypesReq) SetUUID ¶
func (s *UpdateAllTypesReq) SetUUID(val OptUUID)
SetUUID sets the value of UUID.
func (*UpdateAllTypesReq) SetUint ¶
func (s *UpdateAllTypesReq) SetUint(val OptInt64)
SetUint sets the value of Uint.
func (*UpdateAllTypesReq) SetUint16 ¶
func (s *UpdateAllTypesReq) SetUint16(val OptInt32)
SetUint16 sets the value of Uint16.
func (*UpdateAllTypesReq) SetUint32 ¶
func (s *UpdateAllTypesReq) SetUint32(val OptInt64)
SetUint32 sets the value of Uint32.
func (*UpdateAllTypesReq) SetUint64 ¶
func (s *UpdateAllTypesReq) SetUint64(val OptInt64)
SetUint64 sets the value of Uint64.
func (*UpdateAllTypesReq) SetUint8 ¶
func (s *UpdateAllTypesReq) SetUint8(val OptInt32)
SetUint8 sets the value of Uint8.
func (*UpdateAllTypesReq) UnmarshalJSON ¶
func (s *UpdateAllTypesReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UpdateAllTypesReq) Validate ¶
func (s UpdateAllTypesReq) Validate() error
type UpdateAllTypesReqState ¶
type UpdateAllTypesReqState string
const ( UpdateAllTypesReqStateOn UpdateAllTypesReqState = "on" UpdateAllTypesReqStateOff UpdateAllTypesReqState = "off" )
func (*UpdateAllTypesReqState) Decode ¶
func (s *UpdateAllTypesReqState) Decode(d *jx.Decoder) error
Decode decodes UpdateAllTypesReqState from json.
func (UpdateAllTypesReqState) Encode ¶
func (s UpdateAllTypesReqState) Encode(e *jx.Encoder)
Encode encodes UpdateAllTypesReqState as json.
func (UpdateAllTypesReqState) MarshalJSON ¶
func (s UpdateAllTypesReqState) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateAllTypesReqState) UnmarshalJSON ¶
func (s *UpdateAllTypesReqState) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UpdateAllTypesReqState) Validate ¶
func (s UpdateAllTypesReqState) Validate() error
type UpdateAllTypesRes ¶
type UpdateAllTypesRes interface {
// contains filtered or unexported methods
}
type UpdateCategoryParams ¶
type UpdateCategoryParams struct { // ID of the Category. ID int }
type UpdateCategoryReq ¶
func (*UpdateCategoryReq) Decode ¶
func (s *UpdateCategoryReq) Decode(d *jx.Decoder) error
Decode decodes UpdateCategoryReq from json.
func (UpdateCategoryReq) Encode ¶
func (s UpdateCategoryReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UpdateCategoryReq) GetName ¶
func (s UpdateCategoryReq) GetName() OptString
GetName returns the value of Name.
func (UpdateCategoryReq) GetPets ¶
func (s UpdateCategoryReq) GetPets() []int
GetPets returns the value of Pets.
func (UpdateCategoryReq) MarshalJSON ¶
func (s UpdateCategoryReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateCategoryReq) SetName ¶
func (s *UpdateCategoryReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdateCategoryReq) SetPets ¶
func (s *UpdateCategoryReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*UpdateCategoryReq) UnmarshalJSON ¶
func (s *UpdateCategoryReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UpdateCategoryRes ¶
type UpdateCategoryRes interface {
// contains filtered or unexported methods
}
type UpdatePetParams ¶
type UpdatePetParams struct { // ID of the Pet. ID int }
type UpdatePetReq ¶
type UpdatePetReq struct { Name OptString `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` Categories []int `json:"categories"` Owner OptInt `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) GetHeight ¶
func (s UpdatePetReq) GetHeight() OptInt
GetHeight returns the value of Height.
func (UpdatePetReq) GetName ¶
func (s UpdatePetReq) GetName() OptString
GetName returns the value of Name.
func (UpdatePetReq) GetOwner ¶
func (s UpdatePetReq) GetOwner() OptInt
GetOwner returns the value of Owner.
func (UpdatePetReq) GetTagID ¶
func (s UpdatePetReq) GetTagID() []byte
GetTagID returns the value of TagID.
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) SetHeight ¶
func (s *UpdatePetReq) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*UpdatePetReq) SetName ¶
func (s *UpdatePetReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdatePetReq) SetOwner ¶
func (s *UpdatePetReq) SetOwner(val OptInt)
SetOwner sets the value of Owner.
func (*UpdatePetReq) SetTagID ¶
func (s *UpdatePetReq) SetTagID(val []byte)
SetTagID sets the value of TagID.
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
}
type UpdateUserParams ¶
type UpdateUserParams struct { // ID of the User. ID int }
type UpdateUserReq ¶
type UpdateUserReq struct { Name OptString `json:"name"` Age OptInt64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed OptUpdateUserReqFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUpdateUserReqFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUpdateUserReqFavoriteFishBreed `json:"favorite_fish_breed"` Pets []int `json:"pets"` BestFriend OptInt `json:"best_friend"` }
func (*UpdateUserReq) Decode ¶
func (s *UpdateUserReq) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReq from json.
func (UpdateUserReq) Encode ¶
func (s UpdateUserReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UpdateUserReq) GetAge ¶
func (s UpdateUserReq) GetAge() OptInt64
GetAge returns the value of Age.
func (UpdateUserReq) GetBestFriend ¶
func (s UpdateUserReq) GetBestFriend() OptInt
GetBestFriend returns the value of BestFriend.
func (UpdateUserReq) GetFavoriteCatBreed ¶
func (s UpdateUserReq) GetFavoriteCatBreed() OptUpdateUserReqFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (UpdateUserReq) GetFavoriteDogBreed ¶
func (s UpdateUserReq) GetFavoriteDogBreed() OptUpdateUserReqFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (UpdateUserReq) GetFavoriteFishBreed ¶
func (s UpdateUserReq) GetFavoriteFishBreed() OptUpdateUserReqFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (UpdateUserReq) GetHeight ¶
func (s UpdateUserReq) GetHeight() OptInt64
GetHeight returns the value of Height.
func (UpdateUserReq) GetName ¶
func (s UpdateUserReq) GetName() OptString
GetName returns the value of Name.
func (UpdateUserReq) GetPets ¶
func (s UpdateUserReq) GetPets() []int
GetPets returns the value of Pets.
func (UpdateUserReq) MarshalJSON ¶
func (s UpdateUserReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateUserReq) SetAge ¶
func (s *UpdateUserReq) SetAge(val OptInt64)
SetAge sets the value of Age.
func (*UpdateUserReq) SetBestFriend ¶
func (s *UpdateUserReq) SetBestFriend(val OptInt)
SetBestFriend sets the value of BestFriend.
func (*UpdateUserReq) SetFavoriteCatBreed ¶
func (s *UpdateUserReq) SetFavoriteCatBreed(val OptUpdateUserReqFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UpdateUserReq) SetFavoriteDogBreed ¶
func (s *UpdateUserReq) SetFavoriteDogBreed(val OptUpdateUserReqFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UpdateUserReq) SetFavoriteFishBreed ¶
func (s *UpdateUserReq) SetFavoriteFishBreed(val OptUpdateUserReqFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UpdateUserReq) SetHeight ¶
func (s *UpdateUserReq) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UpdateUserReq) SetName ¶
func (s *UpdateUserReq) SetName(val OptString)
SetName sets the value of Name.
func (*UpdateUserReq) SetPets ¶
func (s *UpdateUserReq) SetPets(val []int)
SetPets sets the value of Pets.
func (*UpdateUserReq) UnmarshalJSON ¶
func (s *UpdateUserReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UpdateUserReq) Validate ¶
func (s UpdateUserReq) Validate() error
type UpdateUserReqFavoriteCatBreed ¶
type UpdateUserReqFavoriteCatBreed string
const ( UpdateUserReqFavoriteCatBreedSiamese UpdateUserReqFavoriteCatBreed = "siamese" UpdateUserReqFavoriteCatBreedBengal UpdateUserReqFavoriteCatBreed = "bengal" UpdateUserReqFavoriteCatBreedLion UpdateUserReqFavoriteCatBreed = "lion" UpdateUserReqFavoriteCatBreedTiger UpdateUserReqFavoriteCatBreed = "tiger" UpdateUserReqFavoriteCatBreedLeopard UpdateUserReqFavoriteCatBreed = "leopard" UpdateUserReqFavoriteCatBreedOther UpdateUserReqFavoriteCatBreed = "other" )
func (*UpdateUserReqFavoriteCatBreed) Decode ¶
func (s *UpdateUserReqFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteCatBreed from json.
func (UpdateUserReqFavoriteCatBreed) Encode ¶
func (s UpdateUserReqFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteCatBreed as json.
func (UpdateUserReqFavoriteCatBreed) MarshalJSON ¶
func (s UpdateUserReqFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateUserReqFavoriteCatBreed) UnmarshalJSON ¶
func (s *UpdateUserReqFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UpdateUserReqFavoriteCatBreed) Validate ¶
func (s UpdateUserReqFavoriteCatBreed) Validate() error
type UpdateUserReqFavoriteDogBreed ¶
type UpdateUserReqFavoriteDogBreed string
const (
UpdateUserReqFavoriteDogBreedKuro UpdateUserReqFavoriteDogBreed = "Kuro"
)
func (*UpdateUserReqFavoriteDogBreed) Decode ¶
func (s *UpdateUserReqFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteDogBreed from json.
func (UpdateUserReqFavoriteDogBreed) Encode ¶
func (s UpdateUserReqFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteDogBreed as json.
func (UpdateUserReqFavoriteDogBreed) MarshalJSON ¶
func (s UpdateUserReqFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateUserReqFavoriteDogBreed) UnmarshalJSON ¶
func (s *UpdateUserReqFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UpdateUserReqFavoriteDogBreed) Validate ¶
func (s UpdateUserReqFavoriteDogBreed) Validate() error
type UpdateUserReqFavoriteFishBreed ¶
type UpdateUserReqFavoriteFishBreed string
const ( UpdateUserReqFavoriteFishBreedGold UpdateUserReqFavoriteFishBreed = "gold" UpdateUserReqFavoriteFishBreedKoi UpdateUserReqFavoriteFishBreed = "koi" UpdateUserReqFavoriteFishBreedShark UpdateUserReqFavoriteFishBreed = "shark" )
func (*UpdateUserReqFavoriteFishBreed) Decode ¶
func (s *UpdateUserReqFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UpdateUserReqFavoriteFishBreed from json.
func (UpdateUserReqFavoriteFishBreed) Encode ¶
func (s UpdateUserReqFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UpdateUserReqFavoriteFishBreed as json.
func (UpdateUserReqFavoriteFishBreed) MarshalJSON ¶
func (s UpdateUserReqFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UpdateUserReqFavoriteFishBreed) UnmarshalJSON ¶
func (s *UpdateUserReqFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UpdateUserReqFavoriteFishBreed) Validate ¶
func (s UpdateUserReqFavoriteFishBreed) Validate() error
type UpdateUserRes ¶
type UpdateUserRes interface {
// contains filtered or unexported methods
}
type UserBestFriendRead ¶
type UserBestFriendRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserBestFriendReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUserBestFriendReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserBestFriendReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/User_BestFriendRead
func NewUserBestFriendRead ¶
func NewUserBestFriendRead(e *ent.User) *UserBestFriendRead
func NewUserBestFriendReads ¶
func NewUserBestFriendReads(es []*ent.User) []UserBestFriendRead
func (*UserBestFriendRead) Decode ¶
func (s *UserBestFriendRead) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendRead from json.
func (*UserBestFriendRead) Elem ¶
func (u *UserBestFriendRead) Elem() UserBestFriendRead
func (UserBestFriendRead) Encode ¶
func (s UserBestFriendRead) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UserBestFriendRead) GetAge ¶
func (s UserBestFriendRead) GetAge() int64
GetAge returns the value of Age.
func (UserBestFriendRead) GetFavoriteCatBreed ¶
func (s UserBestFriendRead) GetFavoriteCatBreed() UserBestFriendReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (UserBestFriendRead) GetFavoriteDogBreed ¶
func (s UserBestFriendRead) GetFavoriteDogBreed() OptUserBestFriendReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (UserBestFriendRead) GetFavoriteFishBreed ¶
func (s UserBestFriendRead) GetFavoriteFishBreed() OptUserBestFriendReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (UserBestFriendRead) GetHeight ¶
func (s UserBestFriendRead) GetHeight() OptInt64
GetHeight returns the value of Height.
func (UserBestFriendRead) GetID ¶
func (s UserBestFriendRead) GetID() int
GetID returns the value of ID.
func (UserBestFriendRead) GetName ¶
func (s UserBestFriendRead) GetName() string
GetName returns the value of Name.
func (UserBestFriendRead) MarshalJSON ¶
func (s UserBestFriendRead) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserBestFriendRead) SetAge ¶
func (s *UserBestFriendRead) SetAge(val int64)
SetAge sets the value of Age.
func (*UserBestFriendRead) SetFavoriteCatBreed ¶
func (s *UserBestFriendRead) SetFavoriteCatBreed(val UserBestFriendReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserBestFriendRead) SetFavoriteDogBreed ¶
func (s *UserBestFriendRead) SetFavoriteDogBreed(val OptUserBestFriendReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserBestFriendRead) SetFavoriteFishBreed ¶
func (s *UserBestFriendRead) SetFavoriteFishBreed(val OptUserBestFriendReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserBestFriendRead) SetHeight ¶
func (s *UserBestFriendRead) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UserBestFriendRead) SetID ¶
func (s *UserBestFriendRead) SetID(val int)
SetID sets the value of ID.
func (*UserBestFriendRead) SetName ¶
func (s *UserBestFriendRead) SetName(val string)
SetName sets the value of Name.
func (*UserBestFriendRead) UnmarshalJSON ¶
func (s *UserBestFriendRead) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserBestFriendRead) Validate ¶
func (s UserBestFriendRead) Validate() error
type UserBestFriendReadFavoriteCatBreed ¶
type UserBestFriendReadFavoriteCatBreed string
const ( UserBestFriendReadFavoriteCatBreedSiamese UserBestFriendReadFavoriteCatBreed = "siamese" UserBestFriendReadFavoriteCatBreedBengal UserBestFriendReadFavoriteCatBreed = "bengal" UserBestFriendReadFavoriteCatBreedLion UserBestFriendReadFavoriteCatBreed = "lion" UserBestFriendReadFavoriteCatBreedTiger UserBestFriendReadFavoriteCatBreed = "tiger" UserBestFriendReadFavoriteCatBreedLeopard UserBestFriendReadFavoriteCatBreed = "leopard" UserBestFriendReadFavoriteCatBreedOther UserBestFriendReadFavoriteCatBreed = "other" )
func (*UserBestFriendReadFavoriteCatBreed) Decode ¶
func (s *UserBestFriendReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteCatBreed from json.
func (UserBestFriendReadFavoriteCatBreed) Encode ¶
func (s UserBestFriendReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteCatBreed as json.
func (UserBestFriendReadFavoriteCatBreed) MarshalJSON ¶
func (s UserBestFriendReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserBestFriendReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserBestFriendReadFavoriteCatBreed) Validate ¶
func (s UserBestFriendReadFavoriteCatBreed) Validate() error
type UserBestFriendReadFavoriteDogBreed ¶
type UserBestFriendReadFavoriteDogBreed string
const (
UserBestFriendReadFavoriteDogBreedKuro UserBestFriendReadFavoriteDogBreed = "Kuro"
)
func (*UserBestFriendReadFavoriteDogBreed) Decode ¶
func (s *UserBestFriendReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteDogBreed from json.
func (UserBestFriendReadFavoriteDogBreed) Encode ¶
func (s UserBestFriendReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteDogBreed as json.
func (UserBestFriendReadFavoriteDogBreed) MarshalJSON ¶
func (s UserBestFriendReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserBestFriendReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserBestFriendReadFavoriteDogBreed) Validate ¶
func (s UserBestFriendReadFavoriteDogBreed) Validate() error
type UserBestFriendReadFavoriteFishBreed ¶
type UserBestFriendReadFavoriteFishBreed string
const ( UserBestFriendReadFavoriteFishBreedGold UserBestFriendReadFavoriteFishBreed = "gold" UserBestFriendReadFavoriteFishBreedKoi UserBestFriendReadFavoriteFishBreed = "koi" UserBestFriendReadFavoriteFishBreedShark UserBestFriendReadFavoriteFishBreed = "shark" )
func (*UserBestFriendReadFavoriteFishBreed) Decode ¶
func (s *UserBestFriendReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserBestFriendReadFavoriteFishBreed from json.
func (UserBestFriendReadFavoriteFishBreed) Encode ¶
func (s UserBestFriendReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserBestFriendReadFavoriteFishBreed as json.
func (UserBestFriendReadFavoriteFishBreed) MarshalJSON ¶
func (s UserBestFriendReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserBestFriendReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserBestFriendReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserBestFriendReadFavoriteFishBreed) Validate ¶
func (s UserBestFriendReadFavoriteFishBreed) Validate() error
type UserCreate ¶
type UserCreate struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserCreateFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUserCreateFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserCreateFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserCreate
func NewUserCreate ¶
func NewUserCreate(e *ent.User) *UserCreate
func NewUserCreates ¶
func NewUserCreates(es []*ent.User) []UserCreate
func (*UserCreate) Decode ¶
func (s *UserCreate) Decode(d *jx.Decoder) error
Decode decodes UserCreate from json.
func (*UserCreate) Elem ¶
func (u *UserCreate) Elem() UserCreate
func (UserCreate) Encode ¶
func (s UserCreate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UserCreate) GetFavoriteCatBreed ¶
func (s UserCreate) GetFavoriteCatBreed() UserCreateFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (UserCreate) GetFavoriteDogBreed ¶
func (s UserCreate) GetFavoriteDogBreed() OptUserCreateFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (UserCreate) GetFavoriteFishBreed ¶
func (s UserCreate) GetFavoriteFishBreed() OptUserCreateFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (UserCreate) GetHeight ¶
func (s UserCreate) GetHeight() OptInt64
GetHeight returns the value of Height.
func (UserCreate) MarshalJSON ¶
func (s UserCreate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserCreate) SetFavoriteCatBreed ¶
func (s *UserCreate) SetFavoriteCatBreed(val UserCreateFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserCreate) SetFavoriteDogBreed ¶
func (s *UserCreate) SetFavoriteDogBreed(val OptUserCreateFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserCreate) SetFavoriteFishBreed ¶
func (s *UserCreate) SetFavoriteFishBreed(val OptUserCreateFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserCreate) SetHeight ¶
func (s *UserCreate) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UserCreate) SetName ¶
func (s *UserCreate) SetName(val string)
SetName sets the value of Name.
func (*UserCreate) UnmarshalJSON ¶
func (s *UserCreate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserCreate) Validate ¶
func (s UserCreate) Validate() error
type UserCreateFavoriteCatBreed ¶
type UserCreateFavoriteCatBreed string
const ( UserCreateFavoriteCatBreedSiamese UserCreateFavoriteCatBreed = "siamese" UserCreateFavoriteCatBreedBengal UserCreateFavoriteCatBreed = "bengal" UserCreateFavoriteCatBreedLion UserCreateFavoriteCatBreed = "lion" UserCreateFavoriteCatBreedTiger UserCreateFavoriteCatBreed = "tiger" UserCreateFavoriteCatBreedLeopard UserCreateFavoriteCatBreed = "leopard" UserCreateFavoriteCatBreedOther UserCreateFavoriteCatBreed = "other" )
func (*UserCreateFavoriteCatBreed) Decode ¶
func (s *UserCreateFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteCatBreed from json.
func (UserCreateFavoriteCatBreed) Encode ¶
func (s UserCreateFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteCatBreed as json.
func (UserCreateFavoriteCatBreed) MarshalJSON ¶
func (s UserCreateFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserCreateFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserCreateFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserCreateFavoriteCatBreed) Validate ¶
func (s UserCreateFavoriteCatBreed) Validate() error
type UserCreateFavoriteDogBreed ¶
type UserCreateFavoriteDogBreed string
const (
UserCreateFavoriteDogBreedKuro UserCreateFavoriteDogBreed = "Kuro"
)
func (*UserCreateFavoriteDogBreed) Decode ¶
func (s *UserCreateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteDogBreed from json.
func (UserCreateFavoriteDogBreed) Encode ¶
func (s UserCreateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteDogBreed as json.
func (UserCreateFavoriteDogBreed) MarshalJSON ¶
func (s UserCreateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserCreateFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserCreateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserCreateFavoriteDogBreed) Validate ¶
func (s UserCreateFavoriteDogBreed) Validate() error
type UserCreateFavoriteFishBreed ¶
type UserCreateFavoriteFishBreed string
const ( UserCreateFavoriteFishBreedGold UserCreateFavoriteFishBreed = "gold" UserCreateFavoriteFishBreedKoi UserCreateFavoriteFishBreed = "koi" UserCreateFavoriteFishBreedShark UserCreateFavoriteFishBreed = "shark" )
func (*UserCreateFavoriteFishBreed) Decode ¶
func (s *UserCreateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserCreateFavoriteFishBreed from json.
func (UserCreateFavoriteFishBreed) Encode ¶
func (s UserCreateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserCreateFavoriteFishBreed as json.
func (UserCreateFavoriteFishBreed) MarshalJSON ¶
func (s UserCreateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserCreateFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserCreateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserCreateFavoriteFishBreed) Validate ¶
func (s UserCreateFavoriteFishBreed) Validate() error
type UserList ¶
type UserList struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserListFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUserListFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserListFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserList
func NewUserList ¶
func NewUserLists ¶
func (UserList) GetFavoriteCatBreed ¶
func (s UserList) GetFavoriteCatBreed() UserListFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (UserList) GetFavoriteDogBreed ¶
func (s UserList) GetFavoriteDogBreed() OptUserListFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (UserList) GetFavoriteFishBreed ¶
func (s UserList) GetFavoriteFishBreed() OptUserListFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (UserList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*UserList) SetFavoriteCatBreed ¶
func (s *UserList) SetFavoriteCatBreed(val UserListFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserList) SetFavoriteDogBreed ¶
func (s *UserList) SetFavoriteDogBreed(val OptUserListFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserList) SetFavoriteFishBreed ¶
func (s *UserList) SetFavoriteFishBreed(val OptUserListFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserListFavoriteCatBreed ¶
type UserListFavoriteCatBreed string
const ( UserListFavoriteCatBreedSiamese UserListFavoriteCatBreed = "siamese" UserListFavoriteCatBreedBengal UserListFavoriteCatBreed = "bengal" UserListFavoriteCatBreedLion UserListFavoriteCatBreed = "lion" UserListFavoriteCatBreedTiger UserListFavoriteCatBreed = "tiger" UserListFavoriteCatBreedLeopard UserListFavoriteCatBreed = "leopard" UserListFavoriteCatBreedOther UserListFavoriteCatBreed = "other" )
func (*UserListFavoriteCatBreed) Decode ¶
func (s *UserListFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteCatBreed from json.
func (UserListFavoriteCatBreed) Encode ¶
func (s UserListFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteCatBreed as json.
func (UserListFavoriteCatBreed) MarshalJSON ¶
func (s UserListFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserListFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserListFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserListFavoriteCatBreed) Validate ¶
func (s UserListFavoriteCatBreed) Validate() error
type UserListFavoriteDogBreed ¶
type UserListFavoriteDogBreed string
const (
UserListFavoriteDogBreedKuro UserListFavoriteDogBreed = "Kuro"
)
func (*UserListFavoriteDogBreed) Decode ¶
func (s *UserListFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteDogBreed from json.
func (UserListFavoriteDogBreed) Encode ¶
func (s UserListFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteDogBreed as json.
func (UserListFavoriteDogBreed) MarshalJSON ¶
func (s UserListFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserListFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserListFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserListFavoriteDogBreed) Validate ¶
func (s UserListFavoriteDogBreed) Validate() error
type UserListFavoriteFishBreed ¶
type UserListFavoriteFishBreed string
const ( UserListFavoriteFishBreedGold UserListFavoriteFishBreed = "gold" UserListFavoriteFishBreedKoi UserListFavoriteFishBreed = "koi" UserListFavoriteFishBreedShark UserListFavoriteFishBreed = "shark" )
func (*UserListFavoriteFishBreed) Decode ¶
func (s *UserListFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserListFavoriteFishBreed from json.
func (UserListFavoriteFishBreed) Encode ¶
func (s UserListFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserListFavoriteFishBreed as json.
func (UserListFavoriteFishBreed) MarshalJSON ¶
func (s UserListFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserListFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserListFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserListFavoriteFishBreed) Validate ¶
func (s UserListFavoriteFishBreed) Validate() error
type UserPetsList ¶
type UserPetsList struct { ID int `json:"id"` Name string `json:"name"` Weight OptInt `json:"weight"` Birthday OptDateTime `json:"birthday"` TagID []byte `json:"tag_id"` Height OptInt `json:"height"` }
Ref: #/components/schemas/User_PetsList
func NewUserPetsList ¶
func NewUserPetsList(e *ent.Pet) *UserPetsList
func NewUserPetsLists ¶
func NewUserPetsLists(es []*ent.Pet) []UserPetsList
func (*UserPetsList) Decode ¶
func (s *UserPetsList) Decode(d *jx.Decoder) error
Decode decodes UserPetsList from json.
func (*UserPetsList) Elem ¶
func (pe *UserPetsList) Elem() UserPetsList
func (UserPetsList) Encode ¶
func (s UserPetsList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UserPetsList) GetBirthday ¶
func (s UserPetsList) GetBirthday() OptDateTime
GetBirthday returns the value of Birthday.
func (UserPetsList) GetHeight ¶
func (s UserPetsList) GetHeight() OptInt
GetHeight returns the value of Height.
func (UserPetsList) GetName ¶
func (s UserPetsList) GetName() string
GetName returns the value of Name.
func (UserPetsList) GetTagID ¶
func (s UserPetsList) GetTagID() []byte
GetTagID returns the value of TagID.
func (UserPetsList) GetWeight ¶
func (s UserPetsList) GetWeight() OptInt
GetWeight returns the value of Weight.
func (UserPetsList) MarshalJSON ¶
func (s UserPetsList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserPetsList) SetBirthday ¶
func (s *UserPetsList) SetBirthday(val OptDateTime)
SetBirthday sets the value of Birthday.
func (*UserPetsList) SetHeight ¶
func (s *UserPetsList) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*UserPetsList) SetName ¶
func (s *UserPetsList) SetName(val string)
SetName sets the value of Name.
func (*UserPetsList) SetTagID ¶
func (s *UserPetsList) SetTagID(val []byte)
SetTagID sets the value of TagID.
func (*UserPetsList) SetWeight ¶
func (s *UserPetsList) SetWeight(val OptInt)
SetWeight sets the value of Weight.
func (*UserPetsList) UnmarshalJSON ¶
func (s *UserPetsList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UserRead ¶
type UserRead struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserReadFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUserReadFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserReadFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserRead
func NewUserRead ¶
func NewUserReads ¶
func (UserRead) GetFavoriteCatBreed ¶
func (s UserRead) GetFavoriteCatBreed() UserReadFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (UserRead) GetFavoriteDogBreed ¶
func (s UserRead) GetFavoriteDogBreed() OptUserReadFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (UserRead) GetFavoriteFishBreed ¶
func (s UserRead) GetFavoriteFishBreed() OptUserReadFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (UserRead) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*UserRead) SetFavoriteCatBreed ¶
func (s *UserRead) SetFavoriteCatBreed(val UserReadFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserRead) SetFavoriteDogBreed ¶
func (s *UserRead) SetFavoriteDogBreed(val OptUserReadFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserRead) SetFavoriteFishBreed ¶
func (s *UserRead) SetFavoriteFishBreed(val OptUserReadFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserRead) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserReadFavoriteCatBreed ¶
type UserReadFavoriteCatBreed string
const ( UserReadFavoriteCatBreedSiamese UserReadFavoriteCatBreed = "siamese" UserReadFavoriteCatBreedBengal UserReadFavoriteCatBreed = "bengal" UserReadFavoriteCatBreedLion UserReadFavoriteCatBreed = "lion" UserReadFavoriteCatBreedTiger UserReadFavoriteCatBreed = "tiger" UserReadFavoriteCatBreedLeopard UserReadFavoriteCatBreed = "leopard" UserReadFavoriteCatBreedOther UserReadFavoriteCatBreed = "other" )
func (*UserReadFavoriteCatBreed) Decode ¶
func (s *UserReadFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteCatBreed from json.
func (UserReadFavoriteCatBreed) Encode ¶
func (s UserReadFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteCatBreed as json.
func (UserReadFavoriteCatBreed) MarshalJSON ¶
func (s UserReadFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserReadFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserReadFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserReadFavoriteCatBreed) Validate ¶
func (s UserReadFavoriteCatBreed) Validate() error
type UserReadFavoriteDogBreed ¶
type UserReadFavoriteDogBreed string
const (
UserReadFavoriteDogBreedKuro UserReadFavoriteDogBreed = "Kuro"
)
func (*UserReadFavoriteDogBreed) Decode ¶
func (s *UserReadFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteDogBreed from json.
func (UserReadFavoriteDogBreed) Encode ¶
func (s UserReadFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteDogBreed as json.
func (UserReadFavoriteDogBreed) MarshalJSON ¶
func (s UserReadFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserReadFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserReadFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserReadFavoriteDogBreed) Validate ¶
func (s UserReadFavoriteDogBreed) Validate() error
type UserReadFavoriteFishBreed ¶
type UserReadFavoriteFishBreed string
const ( UserReadFavoriteFishBreedGold UserReadFavoriteFishBreed = "gold" UserReadFavoriteFishBreedKoi UserReadFavoriteFishBreed = "koi" UserReadFavoriteFishBreedShark UserReadFavoriteFishBreed = "shark" )
func (*UserReadFavoriteFishBreed) Decode ¶
func (s *UserReadFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserReadFavoriteFishBreed from json.
func (UserReadFavoriteFishBreed) Encode ¶
func (s UserReadFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserReadFavoriteFishBreed as json.
func (UserReadFavoriteFishBreed) MarshalJSON ¶
func (s UserReadFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserReadFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserReadFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserReadFavoriteFishBreed) Validate ¶
func (s UserReadFavoriteFishBreed) Validate() error
type UserUpdate ¶
type UserUpdate struct { ID int `json:"id"` Name string `json:"name"` Age int64 `json:"age"` Height OptInt64 `json:"height"` FavoriteCatBreed UserUpdateFavoriteCatBreed `json:"favorite_cat_breed"` FavoriteDogBreed OptUserUpdateFavoriteDogBreed `json:"favorite_dog_breed"` FavoriteFishBreed OptUserUpdateFavoriteFishBreed `json:"favorite_fish_breed"` }
Ref: #/components/schemas/UserUpdate
func NewUserUpdate ¶
func NewUserUpdate(e *ent.User) *UserUpdate
func NewUserUpdates ¶
func NewUserUpdates(es []*ent.User) []UserUpdate
func (*UserUpdate) Decode ¶
func (s *UserUpdate) Decode(d *jx.Decoder) error
Decode decodes UserUpdate from json.
func (*UserUpdate) Elem ¶
func (u *UserUpdate) Elem() UserUpdate
func (UserUpdate) Encode ¶
func (s UserUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (UserUpdate) GetFavoriteCatBreed ¶
func (s UserUpdate) GetFavoriteCatBreed() UserUpdateFavoriteCatBreed
GetFavoriteCatBreed returns the value of FavoriteCatBreed.
func (UserUpdate) GetFavoriteDogBreed ¶
func (s UserUpdate) GetFavoriteDogBreed() OptUserUpdateFavoriteDogBreed
GetFavoriteDogBreed returns the value of FavoriteDogBreed.
func (UserUpdate) GetFavoriteFishBreed ¶
func (s UserUpdate) GetFavoriteFishBreed() OptUserUpdateFavoriteFishBreed
GetFavoriteFishBreed returns the value of FavoriteFishBreed.
func (UserUpdate) GetHeight ¶
func (s UserUpdate) GetHeight() OptInt64
GetHeight returns the value of Height.
func (UserUpdate) MarshalJSON ¶
func (s UserUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserUpdate) SetFavoriteCatBreed ¶
func (s *UserUpdate) SetFavoriteCatBreed(val UserUpdateFavoriteCatBreed)
SetFavoriteCatBreed sets the value of FavoriteCatBreed.
func (*UserUpdate) SetFavoriteDogBreed ¶
func (s *UserUpdate) SetFavoriteDogBreed(val OptUserUpdateFavoriteDogBreed)
SetFavoriteDogBreed sets the value of FavoriteDogBreed.
func (*UserUpdate) SetFavoriteFishBreed ¶
func (s *UserUpdate) SetFavoriteFishBreed(val OptUserUpdateFavoriteFishBreed)
SetFavoriteFishBreed sets the value of FavoriteFishBreed.
func (*UserUpdate) SetHeight ¶
func (s *UserUpdate) SetHeight(val OptInt64)
SetHeight sets the value of Height.
func (*UserUpdate) SetName ¶
func (s *UserUpdate) SetName(val string)
SetName sets the value of Name.
func (*UserUpdate) UnmarshalJSON ¶
func (s *UserUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserUpdate) Validate ¶
func (s UserUpdate) Validate() error
type UserUpdateFavoriteCatBreed ¶
type UserUpdateFavoriteCatBreed string
const ( UserUpdateFavoriteCatBreedSiamese UserUpdateFavoriteCatBreed = "siamese" UserUpdateFavoriteCatBreedBengal UserUpdateFavoriteCatBreed = "bengal" UserUpdateFavoriteCatBreedLion UserUpdateFavoriteCatBreed = "lion" UserUpdateFavoriteCatBreedTiger UserUpdateFavoriteCatBreed = "tiger" UserUpdateFavoriteCatBreedLeopard UserUpdateFavoriteCatBreed = "leopard" UserUpdateFavoriteCatBreedOther UserUpdateFavoriteCatBreed = "other" )
func (*UserUpdateFavoriteCatBreed) Decode ¶
func (s *UserUpdateFavoriteCatBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteCatBreed from json.
func (UserUpdateFavoriteCatBreed) Encode ¶
func (s UserUpdateFavoriteCatBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteCatBreed as json.
func (UserUpdateFavoriteCatBreed) MarshalJSON ¶
func (s UserUpdateFavoriteCatBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserUpdateFavoriteCatBreed) UnmarshalJSON ¶
func (s *UserUpdateFavoriteCatBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserUpdateFavoriteCatBreed) Validate ¶
func (s UserUpdateFavoriteCatBreed) Validate() error
type UserUpdateFavoriteDogBreed ¶
type UserUpdateFavoriteDogBreed string
const (
UserUpdateFavoriteDogBreedKuro UserUpdateFavoriteDogBreed = "Kuro"
)
func (*UserUpdateFavoriteDogBreed) Decode ¶
func (s *UserUpdateFavoriteDogBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteDogBreed from json.
func (UserUpdateFavoriteDogBreed) Encode ¶
func (s UserUpdateFavoriteDogBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteDogBreed as json.
func (UserUpdateFavoriteDogBreed) MarshalJSON ¶
func (s UserUpdateFavoriteDogBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserUpdateFavoriteDogBreed) UnmarshalJSON ¶
func (s *UserUpdateFavoriteDogBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserUpdateFavoriteDogBreed) Validate ¶
func (s UserUpdateFavoriteDogBreed) Validate() error
type UserUpdateFavoriteFishBreed ¶
type UserUpdateFavoriteFishBreed string
const ( UserUpdateFavoriteFishBreedGold UserUpdateFavoriteFishBreed = "gold" UserUpdateFavoriteFishBreedKoi UserUpdateFavoriteFishBreed = "koi" UserUpdateFavoriteFishBreedShark UserUpdateFavoriteFishBreed = "shark" )
func (*UserUpdateFavoriteFishBreed) Decode ¶
func (s *UserUpdateFavoriteFishBreed) Decode(d *jx.Decoder) error
Decode decodes UserUpdateFavoriteFishBreed from json.
func (UserUpdateFavoriteFishBreed) Encode ¶
func (s UserUpdateFavoriteFishBreed) Encode(e *jx.Encoder)
Encode encodes UserUpdateFavoriteFishBreed as json.
func (UserUpdateFavoriteFishBreed) MarshalJSON ¶
func (s UserUpdateFavoriteFishBreed) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserUpdateFavoriteFishBreed) UnmarshalJSON ¶
func (s *UserUpdateFavoriteFishBreed) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (UserUpdateFavoriteFishBreed) Validate ¶
func (s UserUpdateFavoriteFishBreed) Validate() error
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_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
- ogent.go
- responses.go