Documentation ¶
Index ¶
- type AddPetRequest
- type Category
- type CreateUserRequest
- type CreateUserResponse
- type CreateUsersWithArrayInputRequest
- type CreateUsersWithListInputRequest
- type DeleteOrderRequest
- type DeleteOrderRequestUriParams
- type DeletePetRequest
- type DeletePetRequestHeaderParams
- type DeletePetRequestUriParams
- type DeleteUserRequest
- type DeleteUserRequestUriParams
- type FindPetsByStatusRequest
- type FindPetsByTagsRequest
- type GetOrderByIdRequest
- type GetOrderByIdRequestUriParams
- type GetPetByIdRequest
- type GetPetByIdRequestUriParams
- type GetUserByNameRequest
- type GetUserByNameRequestUriParams
- type LabelSet
- type LoginUserRequest
- type LoginUserRequestBody
- type NewPet
- type Order
- type Pet
- type PetServer
- type Pets
- type PlaceOrderRequest
- type StoreServer
- type Tag
- type UnimplementedPetServer
- func (UnimplementedPetServer) AddPet(c *gin.Context, req *AddPetRequest) (_ *Pet, err error)
- func (UnimplementedPetServer) DeletePet(c *gin.Context, req *DeletePetRequest) (err error)
- func (UnimplementedPetServer) FindPetsByStatus(c *gin.Context, req *FindPetsByStatusRequest) (_ []*Pet, err error)
- func (UnimplementedPetServer) FindPetsByTags(c *gin.Context, req *FindPetsByTagsRequest) (_ Pets, err error)
- func (UnimplementedPetServer) GetPetById(c *gin.Context, req *GetPetByIdRequest) (_ *Pet, err error)
- func (UnimplementedPetServer) UpdatePet(c *gin.Context, req *UpdatePetRequest) (_ *Pet, err error)
- func (UnimplementedPetServer) UpdatePetWithForm(c *gin.Context, req *UpdatePetWithFormRequest) (err error)
- func (UnimplementedPetServer) UploadFile(c *gin.Context, req *UploadFileRequest) (_ *extra.ApiResponse, err error)
- type UnimplementedStoreServer
- func (UnimplementedStoreServer) DeleteOrder(c *gin.Context, req *DeleteOrderRequest) (err error)
- func (UnimplementedStoreServer) GetInventory(c *gin.Context) (_ map[string]int32, err error)
- func (UnimplementedStoreServer) GetOrderById(c *gin.Context, req *GetOrderByIdRequest) (_ *Order, err error)
- func (UnimplementedStoreServer) PlaceOrder(c *gin.Context, req *PlaceOrderRequest) (_ *Order, err error)
- type UnimplementedUserServer
- func (UnimplementedUserServer) CreateUser(c *gin.Context, req *CreateUserRequest) (_ *CreateUserResponse, err error)
- func (UnimplementedUserServer) CreateUsersWithArrayInput(c *gin.Context, req *CreateUsersWithArrayInputRequest) (err error)
- func (UnimplementedUserServer) CreateUsersWithListInput(c *gin.Context, req *CreateUsersWithListInputRequest) (err error)
- func (UnimplementedUserServer) DeleteUser(c *gin.Context, req *DeleteUserRequest) (err error)
- func (UnimplementedUserServer) GetUserByName(c *gin.Context, req *GetUserByNameRequest) (_ *User, err error)
- func (UnimplementedUserServer) LoginUser(c *gin.Context, req *LoginUserRequest) (_ string, err error)
- func (UnimplementedUserServer) LogoutUser(c *gin.Context) (err error)
- func (UnimplementedUserServer) UpdateUser(c *gin.Context, req *UpdateUserRequest) (err error)
- type UpdatePetRequest
- type UpdatePetWithFormRequest
- type UpdatePetWithFormRequestBody
- type UpdatePetWithFormRequestUriParams
- type UpdateUserRequest
- type UpdateUserRequestUriParams
- type UploadFileRequest
- type UploadFileRequestBody
- type UploadFileRequestUriParams
- type User
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPetRequest ¶
type AddPetRequest struct {
Body NewPet
}
type CreateUserRequest ¶
type CreateUserRequest struct {
Body User
}
type CreateUserResponse ¶
type CreateUserResponse struct {
UserID string `json:"userID,omitempty"`
}
type CreateUsersWithArrayInputRequest ¶
type CreateUsersWithArrayInputRequest struct {
Body []*User
}
type CreateUsersWithListInputRequest ¶
type CreateUsersWithListInputRequest struct {
Body []*User
}
type DeleteOrderRequest ¶
type DeleteOrderRequest struct {
UriParams DeleteOrderRequestUriParams
}
type DeleteOrderRequestUriParams ¶
type DeleteOrderRequestUriParams struct {
OrderId string `binding:"required" uri:"orderId"`
}
type DeletePetRequest ¶
type DeletePetRequest struct { UriParams DeletePetRequestUriParams HeaderParams DeletePetRequestHeaderParams }
type DeletePetRequestHeaderParams ¶
type DeletePetRequestHeaderParams struct {
APIKey string `header:"api_key"`
}
type DeletePetRequestUriParams ¶
type DeletePetRequestUriParams struct {
PetId int64 `binding:"required" uri:"petId"`
}
type DeleteUserRequest ¶
type DeleteUserRequest struct {
UriParams DeleteUserRequestUriParams
}
type DeleteUserRequestUriParams ¶
type DeleteUserRequestUriParams struct {
Username string `binding:"required" uri:"username"`
}
type FindPetsByStatusRequest ¶
type FindPetsByStatusRequest struct {
Body []string `binding:"required" form:"status"`
}
type FindPetsByTagsRequest ¶
type FindPetsByTagsRequest struct {
Body []string `binding:"required" form:"tags"`
}
type GetOrderByIdRequest ¶
type GetOrderByIdRequest struct {
UriParams GetOrderByIdRequestUriParams
}
type GetOrderByIdRequestUriParams ¶
type GetOrderByIdRequestUriParams struct {
OrderId int64 `binding:"lte=5,gte=1,required" uri:"orderId"`
}
type GetPetByIdRequest ¶
type GetPetByIdRequest struct {
UriParams GetPetByIdRequestUriParams
}
type GetPetByIdRequestUriParams ¶
type GetPetByIdRequestUriParams struct {
PetId int64 `binding:"required" uri:"petId"`
}
type GetUserByNameRequest ¶
type GetUserByNameRequest struct {
UriParams GetUserByNameRequestUriParams
}
type GetUserByNameRequestUriParams ¶
type GetUserByNameRequestUriParams struct {
Username string `binding:"required" uri:"username"`
}
type LoginUserRequest ¶
type LoginUserRequest struct {
Body LoginUserRequestBody
}
type LoginUserRequestBody ¶
type Order ¶
type Order struct { Complete bool `json:"complete,omitempty" xml:"complete"` ID int64 `json:"id,omitempty" xml:"id"` OrderDate time.Time `time_format:"2006-01-02T15:04:05Z07:00" binding:"ltfield=ShipDate,omitempty" json:"orderDate,omitempty" xml:"orderDate"` PetId int64 `json:"petId,omitempty" xml:"petId"` Quantity int32 `json:"quantity,omitempty" xml:"quantity"` ShipDate time.Time `time_format:"2006-01-02T15:04:05Z07:00" json:"shipDate,omitempty" xml:"shipDate"` Status string `json:"status,omitempty" xml:"status"` }
type Pet ¶
type Pet struct { Category *Category `json:"category,omitempty" xml:"Category"` ID int64 `json:"id,omitempty" xml:"id"` Name string `binding:"required" json:"name" xml:"name"` PhotoUrls []string `binding:"required" json:"photoUrls" xml:"photoUrl"` Status string `json:"status,omitempty" xml:"status"` Tags []*Tag `json:"tags,omitempty" xml:"tag"` }
type PetServer ¶
type PetServer interface { // (POST /pet) AddPet(*gin.Context, *AddPetRequest) (*Pet, error) // (DELETE /pet/{petId}) DeletePet(*gin.Context, *DeletePetRequest) error // (GET /pet/findByStatus) FindPetsByStatus(*gin.Context, *FindPetsByStatusRequest) ([]*Pet, error) // (GET /pet/findByTags) FindPetsByTags(*gin.Context, *FindPetsByTagsRequest) (Pets, error) // (GET /pet/{petId}) GetPetById(*gin.Context, *GetPetByIdRequest) (*Pet, error) // (PUT /pet) UpdatePet(*gin.Context, *UpdatePetRequest) (*Pet, error) // (POST /pet/{petId}) UpdatePetWithForm(*gin.Context, *UpdatePetWithFormRequest) error // (POST /pet/{petId}/uploadImage) UploadFile(*gin.Context, *UploadFileRequest) (*extra.ApiResponse, error) }
PetServer is the server API for Pet service.
type PlaceOrderRequest ¶
type PlaceOrderRequest struct {
Body Order
}
type StoreServer ¶
type StoreServer interface { // (DELETE /store/order/{orderId}) DeleteOrder(*gin.Context, *DeleteOrderRequest) error // (GET /store/inventory) GetInventory(*gin.Context) (map[string]int32, error) // (GET /store/order/{orderId}) GetOrderById(*gin.Context, *GetOrderByIdRequest) (*Order, error) // (POST /store/order) PlaceOrder(*gin.Context, *PlaceOrderRequest) (*Order, error) }
StoreServer is the server API for Store service.
type UnimplementedPetServer ¶
type UnimplementedPetServer struct { }
func (UnimplementedPetServer) AddPet ¶
func (UnimplementedPetServer) AddPet(c *gin.Context, req *AddPetRequest) (_ *Pet, err error)
func (UnimplementedPetServer) DeletePet ¶
func (UnimplementedPetServer) DeletePet(c *gin.Context, req *DeletePetRequest) (err error)
func (UnimplementedPetServer) FindPetsByStatus ¶
func (UnimplementedPetServer) FindPetsByStatus(c *gin.Context, req *FindPetsByStatusRequest) (_ []*Pet, err error)
func (UnimplementedPetServer) FindPetsByTags ¶
func (UnimplementedPetServer) FindPetsByTags(c *gin.Context, req *FindPetsByTagsRequest) (_ Pets, err error)
func (UnimplementedPetServer) GetPetById ¶
func (UnimplementedPetServer) GetPetById(c *gin.Context, req *GetPetByIdRequest) (_ *Pet, err error)
func (UnimplementedPetServer) UpdatePet ¶
func (UnimplementedPetServer) UpdatePet(c *gin.Context, req *UpdatePetRequest) (_ *Pet, err error)
func (UnimplementedPetServer) UpdatePetWithForm ¶
func (UnimplementedPetServer) UpdatePetWithForm(c *gin.Context, req *UpdatePetWithFormRequest) (err error)
func (UnimplementedPetServer) UploadFile ¶
func (UnimplementedPetServer) UploadFile(c *gin.Context, req *UploadFileRequest) (_ *extra.ApiResponse, err error)
type UnimplementedStoreServer ¶
type UnimplementedStoreServer struct { }
func (UnimplementedStoreServer) DeleteOrder ¶
func (UnimplementedStoreServer) DeleteOrder(c *gin.Context, req *DeleteOrderRequest) (err error)
func (UnimplementedStoreServer) GetInventory ¶
func (UnimplementedStoreServer) GetOrderById ¶
func (UnimplementedStoreServer) GetOrderById(c *gin.Context, req *GetOrderByIdRequest) (_ *Order, err error)
func (UnimplementedStoreServer) PlaceOrder ¶
func (UnimplementedStoreServer) PlaceOrder(c *gin.Context, req *PlaceOrderRequest) (_ *Order, err error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(c *gin.Context, req *CreateUserRequest) (_ *CreateUserResponse, err error)
func (UnimplementedUserServer) CreateUsersWithArrayInput ¶
func (UnimplementedUserServer) CreateUsersWithArrayInput(c *gin.Context, req *CreateUsersWithArrayInputRequest) (err error)
func (UnimplementedUserServer) CreateUsersWithListInput ¶
func (UnimplementedUserServer) CreateUsersWithListInput(c *gin.Context, req *CreateUsersWithListInputRequest) (err error)
func (UnimplementedUserServer) DeleteUser ¶
func (UnimplementedUserServer) DeleteUser(c *gin.Context, req *DeleteUserRequest) (err error)
func (UnimplementedUserServer) GetUserByName ¶
func (UnimplementedUserServer) GetUserByName(c *gin.Context, req *GetUserByNameRequest) (_ *User, err error)
func (UnimplementedUserServer) LoginUser ¶
func (UnimplementedUserServer) LoginUser(c *gin.Context, req *LoginUserRequest) (_ string, err error)
func (UnimplementedUserServer) LogoutUser ¶
func (UnimplementedUserServer) LogoutUser(c *gin.Context) (err error)
func (UnimplementedUserServer) UpdateUser ¶
func (UnimplementedUserServer) UpdateUser(c *gin.Context, req *UpdateUserRequest) (err error)
type UpdatePetRequest ¶
type UpdatePetRequest struct {
Body Pet
}
type UpdatePetWithFormRequest ¶
type UpdatePetWithFormRequest struct { UriParams UpdatePetWithFormRequestUriParams Body UpdatePetWithFormRequestBody }
type UpdatePetWithFormRequestUriParams ¶
type UpdatePetWithFormRequestUriParams struct {
PetId int64 `binding:"required" uri:"petId"`
}
type UpdateUserRequest ¶
type UpdateUserRequest struct { UriParams UpdateUserRequestUriParams Body User }
type UpdateUserRequestUriParams ¶
type UpdateUserRequestUriParams struct {
Username string `binding:"required" uri:"username"`
}
type UploadFileRequest ¶
type UploadFileRequest struct { UriParams UploadFileRequestUriParams Body UploadFileRequestBody }
type UploadFileRequestBody ¶
type UploadFileRequestUriParams ¶
type UploadFileRequestUriParams struct {
PetId int64 `binding:"required" uri:"petId"`
}
type User ¶
type User struct { Email string `binding:"email,omitempty" json:"email,omitempty" xml:"email"` FirstName string `json:"firstName,omitempty" xml:"firstName"` ID int64 `json:"id,omitempty" xml:"id"` LastName string `json:"lastName,omitempty" xml:"lastName"` Password string `json:"password,omitempty" xml:"password"` Phone string `json:"phone,omitempty" xml:"phone"` UserStatus int32 `json:"userStatus,omitempty" xml:"userStatus"` Username string `json:"username,omitempty" xml:"username"` }
type UserServer ¶
type UserServer interface { // (POST /user) CreateUser(*gin.Context, *CreateUserRequest) (*CreateUserResponse, error) // (POST /user/createWithArray) CreateUsersWithArrayInput(*gin.Context, *CreateUsersWithArrayInputRequest) error // (POST /user/createWithList) CreateUsersWithListInput(*gin.Context, *CreateUsersWithListInputRequest) error // (DELETE /user/{username}) DeleteUser(*gin.Context, *DeleteUserRequest) error // (GET /user/{username}) GetUserByName(*gin.Context, *GetUserByNameRequest) (*User, error) // (GET /user/login) LoginUser(*gin.Context, *LoginUserRequest) (string, error) // (GET /user/logout) LogoutUser(*gin.Context) error // (PUT /user/{username}) UpdateUser(*gin.Context, *UpdateUserRequest) error }
UserServer is the server API for User service.
Click to show internal directories.
Click to hide internal directories.