Documentation
¶
Overview ¶
Package petstoretest provides primitives to interact with the openapi HTTP API.
Code generated by github.com/willabides/oapitesthandler version (devel) DO NOT EDIT.
Index ¶
- Constants
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- type AddPet201ApplicationxmlResponse
- type AddPet201JSONResponse
- type AddPet400Response
- type AddPet422Response
- type AddPetFormdataRequestBody
- type AddPetJSONRequestBody
- type AddPetRequestObject
- type AddPetResponseObject
- type AddPetdefaultResponse
- type ApiResponse
- type BasePhoto
- type Category
- type CreateUser200ApplicationxmlResponse
- type CreateUser200JSONResponse
- type CreateUserFormdataRequestBody
- type CreateUserJSONRequestBody
- type CreateUserRequestObject
- type CreateUserResponseObject
- type CreateUserdefaultResponse
- type CreateUsersWithListInput200ApplicationxmlResponse
- type CreateUsersWithListInput200JSONResponse
- type CreateUsersWithListInputJSONBody
- type CreateUsersWithListInputJSONRequestBody
- type CreateUsersWithListInputRequestObject
- type CreateUsersWithListInputResponseObject
- type CreateUsersWithListInputdefaultResponse
- type DeleteOrder200Response
- type DeleteOrder400Response
- type DeleteOrder404Response
- type DeleteOrderRequestObject
- type DeleteOrderResponseObject
- type DeleteOrderdefaultResponse
- type DeletePet200JSONResponse
- type DeletePet204Response
- type DeletePet400JSONResponse
- type DeletePet404JSONResponse
- type DeletePetParams
- type DeletePetRequestObject
- type DeletePetResponseObject
- type DeletePetdefaultResponse
- type DeleteUser200Response
- type DeleteUser400Response
- type DeleteUser404Response
- type DeleteUserRequestObject
- type DeleteUserResponseObject
- type DeleteUserdefaultResponse
- type Error
- type ErrorApplicationxmlResponse
- type ErrorJSONResponse
- type ExpectOption
- type FindPetsByStatus200ApplicationxmlResponse
- type FindPetsByStatus200JSONResponse
- type FindPetsByStatus400Response
- type FindPetsByStatusParams
- type FindPetsByStatusParamsStatus
- type FindPetsByStatusRequestObject
- type FindPetsByStatusResponseObject
- type FindPetsByStatusdefaultResponse
- type FindPetsByTags200ApplicationxmlResponse
- type FindPetsByTags200JSONResponse
- type FindPetsByTags400Response
- type FindPetsByTagsParams
- type FindPetsByTagsRequestObject
- type FindPetsByTagsResponseObject
- type FindPetsByTagsdefaultResponse
- type GetOrderById200ApplicationxmlResponse
- type GetOrderById200JSONResponse
- type GetOrderById400Response
- type GetOrderById404Response
- type GetOrderByIdRequestObject
- type GetOrderByIdResponseObject
- type GetOrderByIddefaultResponse
- type GetPetById200ApplicationVndPetstorePlusJSONResponse
- type GetPetById200ApplicationxmlResponse
- type GetPetById200JSONResponse
- type GetPetById400ApplicationxmlResponse
- type GetPetById400JSONResponse
- type GetPetById404ApplicationxmlResponse
- type GetPetById404JSONResponse
- type GetPetByIdRequestObject
- type GetPetByIdResponseObject
- type GetPetByIddefaultResponse
- type GetPetMetadata200JSONResponse
- type GetPetMetadata204Response
- type GetPetMetadata404ApplicationxmlResponse
- type GetPetMetadata404JSONResponse
- type GetPetMetadataParams
- type GetPetMetadataRequestObject
- type GetPetMetadataResponseObject
- type GetPetMetadatadefaultResponse
- type GetPetPhotoById200JSONResponse
- type GetPetPhotoById404ApplicationxmlResponse
- type GetPetPhotoById404JSONResponse
- type GetPetPhotoByIdRequestObject
- type GetPetPhotoByIdResponseObject
- type GetPetPhotoByIddefaultResponse
- type GetPetRegistration200JSONResponse
- type GetPetRegistration404JSONResponse
- type GetPetRegistrationRequestObject
- type GetPetRegistrationResponseObject
- type GetStoreInventory200JSONResponse
- type GetStoreInventoryRequestObject
- type GetStoreInventoryResponseObject
- type GetStoreInventorydefaultResponse
- type GetUserByName200ApplicationxmlResponse
- type GetUserByName200JSONResponse
- type GetUserByName400Response
- type GetUserByName404Response
- type GetUserByNameRequestObject
- type GetUserByNameResponseObject
- type GetUserByNamedefaultResponse
- type InvalidParamFormatError
- type LoginUser200ApplicationxmlResponse
- type LoginUser200JSONResponse
- type LoginUser200ResponseHeaders
- type LoginUser400Response
- type LoginUserParams
- type LoginUserRequestObject
- type LoginUserResponseObject
- type LoginUserdefaultResponse
- type LogoutUser200Response
- type LogoutUserRequestObject
- type LogoutUserResponseObject
- type LogoutUserdefaultResponse
- type MiddlewareFunc
- type Order
- type OrderStatus
- type Pet
- type PetPhoto
- type PetStatus
- type PetWithCustomTypes
- type PostStoreOrder200JSONResponse
- type PostStoreOrder400Response
- type PostStoreOrder422Response
- type PostStoreOrderFormdataRequestBody
- type PostStoreOrderJSONRequestBody
- type PostStoreOrderRequestObject
- type PostStoreOrderResponseObject
- type PostStoreOrderdefaultResponse
- type RequiredHeaderError
- type RequiredParamError
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddPet(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateUsersWithListInput(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteOrder(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeletePet(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) FindPetsByStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) FindPetsByTags(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOrderById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPetById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPetMetadata(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPetPhotoById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPetRegistration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStoreInventory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetUserByName(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LoginUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LogoutUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PostStoreOrder(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdatePet(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdatePetWithForm(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UploadFile(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TB
- type Tag
- type TestHandler
- func (s *TestHandler) ExpectAddPet(req AddPetRequestObject, resp AddPetResponseObject, opts ...ExpectOption)
- func (s *TestHandler) ExpectCreateUser(req CreateUserRequestObject, resp CreateUserResponseObject, ...)
- func (s *TestHandler) ExpectCreateUsersWithListInput(req CreateUsersWithListInputRequestObject, ...)
- func (s *TestHandler) ExpectDeleteOrder(req DeleteOrderRequestObject, resp DeleteOrderResponseObject, ...)
- func (s *TestHandler) ExpectDeletePet(req DeletePetRequestObject, resp DeletePetResponseObject, opts ...ExpectOption)
- func (s *TestHandler) ExpectDeleteUser(req DeleteUserRequestObject, resp DeleteUserResponseObject, ...)
- func (s *TestHandler) ExpectFindPetsByStatus(req FindPetsByStatusRequestObject, resp FindPetsByStatusResponseObject, ...)
- func (s *TestHandler) ExpectFindPetsByTags(req FindPetsByTagsRequestObject, resp FindPetsByTagsResponseObject, ...)
- func (s *TestHandler) ExpectGetOrderById(req GetOrderByIdRequestObject, resp GetOrderByIdResponseObject, ...)
- func (s *TestHandler) ExpectGetPetById(req GetPetByIdRequestObject, resp GetPetByIdResponseObject, ...)
- func (s *TestHandler) ExpectGetPetMetadata(req GetPetMetadataRequestObject, resp GetPetMetadataResponseObject, ...)
- func (s *TestHandler) ExpectGetPetPhotoById(req GetPetPhotoByIdRequestObject, resp GetPetPhotoByIdResponseObject, ...)
- func (s *TestHandler) ExpectGetPetRegistration(req GetPetRegistrationRequestObject, resp GetPetRegistrationResponseObject, ...)
- func (s *TestHandler) ExpectGetStoreInventory(req GetStoreInventoryRequestObject, resp GetStoreInventoryResponseObject, ...)
- func (s *TestHandler) ExpectGetUserByName(req GetUserByNameRequestObject, resp GetUserByNameResponseObject, ...)
- func (s *TestHandler) ExpectLoginUser(req LoginUserRequestObject, resp LoginUserResponseObject, opts ...ExpectOption)
- func (s *TestHandler) ExpectLogoutUser(req LogoutUserRequestObject, resp LogoutUserResponseObject, ...)
- func (s *TestHandler) ExpectPostStoreOrder(req PostStoreOrderRequestObject, resp PostStoreOrderResponseObject, ...)
- func (s *TestHandler) ExpectUpdatePet(req UpdatePetRequestObject, resp UpdatePetResponseObject, opts ...ExpectOption)
- func (s *TestHandler) ExpectUpdatePetWithForm(req UpdatePetWithFormRequestObject, resp UpdatePetWithFormResponseObject, ...)
- func (s *TestHandler) ExpectUpdateUser(req UpdateUserRequestObject, resp UpdateUserResponseObject, ...)
- func (s *TestHandler) ExpectUploadFile(req UploadFileRequestObject, resp UploadFileResponseObject, ...)
- func (s *TestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Timestamp
- type TooManyValuesForParamError
- type UUID
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdatePet200ApplicationxmlResponse
- type UpdatePet200JSONResponse
- type UpdatePet400ApplicationxmlResponse
- type UpdatePet400JSONResponse
- type UpdatePet404ApplicationxmlResponse
- type UpdatePet404JSONResponse
- type UpdatePet422ApplicationxmlResponse
- type UpdatePet422JSONResponse
- type UpdatePetFormdataRequestBody
- type UpdatePetJSONRequestBody
- type UpdatePetRequestObject
- type UpdatePetResponseObject
- type UpdatePetWithForm200ApplicationxmlResponse
- type UpdatePetWithForm200JSONResponse
- type UpdatePetWithForm400Response
- type UpdatePetWithFormParams
- type UpdatePetWithFormRequestObject
- type UpdatePetWithFormResponseObject
- type UpdatePetWithFormdefaultResponse
- type UpdatePetdefaultResponse
- type UpdateUser200Response
- type UpdateUser400Response
- type UpdateUser404Response
- type UpdateUserFormdataRequestBody
- type UpdateUserJSONRequestBody
- type UpdateUserRequestObject
- type UpdateUserResponseObject
- type UpdateUserdefaultResponse
- type UploadFile200JSONResponse
- type UploadFile400Response
- type UploadFile404Response
- type UploadFileParams
- type UploadFileRequestObject
- type UploadFileResponseObject
- type UploadFiledefaultResponse
Constants ¶
const ( Api_keyScopes = "api_key.Scopes" Petstore_authScopes = "petstore_auth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type AddPet201ApplicationxmlResponse ¶
func (AddPet201ApplicationxmlResponse) VisitAddPetResponse ¶
func (response AddPet201ApplicationxmlResponse) VisitAddPetResponse(w http.ResponseWriter) error
type AddPet201JSONResponse ¶
type AddPet201JSONResponse Pet
func (AddPet201JSONResponse) VisitAddPetResponse ¶
func (response AddPet201JSONResponse) VisitAddPetResponse(w http.ResponseWriter) error
type AddPet400Response ¶
type AddPet400Response struct {
}
func (AddPet400Response) VisitAddPetResponse ¶
func (response AddPet400Response) VisitAddPetResponse(w http.ResponseWriter) error
type AddPet422Response ¶
type AddPet422Response struct {
}
func (AddPet422Response) VisitAddPetResponse ¶
func (response AddPet422Response) VisitAddPetResponse(w http.ResponseWriter) error
type AddPetFormdataRequestBody ¶
type AddPetFormdataRequestBody = Pet
AddPetFormdataRequestBody defines body for AddPet for application/x-www-form-urlencoded ContentType.
type AddPetJSONRequestBody ¶
type AddPetJSONRequestBody = Pet
AddPetJSONRequestBody defines body for AddPet for application/json ContentType.
type AddPetRequestObject ¶
type AddPetRequestObject struct {
JSONBody *AddPetJSONRequestBody
FormdataBody *AddPetFormdataRequestBody
Body io.Reader
}
type AddPetResponseObject ¶
type AddPetResponseObject interface {
VisitAddPetResponse(w http.ResponseWriter) error
}
type AddPetdefaultResponse ¶
type AddPetdefaultResponse struct {
StatusCode int
}
func (AddPetdefaultResponse) VisitAddPetResponse ¶
func (response AddPetdefaultResponse) VisitAddPetResponse(w http.ResponseWriter) error
type ApiResponse ¶
type ApiResponse struct {
Code *int32 `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Type *string `json:"type,omitempty"`
}
ApiResponse defines model for ApiResponse.
type BasePhoto ¶
type BasePhoto struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Id *int64 `json:"id,omitempty"`
Url *string `json:"url,omitempty"`
}
BasePhoto Base schema for photos (tests allOf composition)
type CreateUser200ApplicationxmlResponse ¶
func (CreateUser200ApplicationxmlResponse) VisitCreateUserResponse ¶
func (response CreateUser200ApplicationxmlResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser200JSONResponse ¶
type CreateUser200JSONResponse externalRef0.User
func (CreateUser200JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser200JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUserFormdataRequestBody ¶
type CreateUserFormdataRequestBody = externalRef0.User
CreateUserFormdataRequestBody defines body for CreateUser for application/x-www-form-urlencoded ContentType.
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = externalRef0.User
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserRequestObject ¶
type CreateUserRequestObject struct {
JSONBody *CreateUserJSONRequestBody
FormdataBody *CreateUserFormdataRequestBody
Body io.Reader
}
type CreateUserResponseObject ¶
type CreateUserResponseObject interface {
VisitCreateUserResponse(w http.ResponseWriter) error
}
type CreateUserdefaultResponse ¶
type CreateUserdefaultResponse struct {
StatusCode int
}
func (CreateUserdefaultResponse) VisitCreateUserResponse ¶
func (response CreateUserdefaultResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUsersWithListInput200ApplicationxmlResponse ¶
type CreateUsersWithListInput200ApplicationxmlResponse struct {
Body io.Reader
ContentLength int64
}
func (CreateUsersWithListInput200ApplicationxmlResponse) VisitCreateUsersWithListInputResponse ¶
func (response CreateUsersWithListInput200ApplicationxmlResponse) VisitCreateUsersWithListInputResponse(w http.ResponseWriter) error
type CreateUsersWithListInput200JSONResponse ¶
type CreateUsersWithListInput200JSONResponse externalRef0.User
func (CreateUsersWithListInput200JSONResponse) VisitCreateUsersWithListInputResponse ¶
func (response CreateUsersWithListInput200JSONResponse) VisitCreateUsersWithListInputResponse(w http.ResponseWriter) error
type CreateUsersWithListInputJSONBody ¶
type CreateUsersWithListInputJSONBody = []externalRef0.User
CreateUsersWithListInputJSONBody defines parameters for CreateUsersWithListInput.
type CreateUsersWithListInputJSONRequestBody ¶
type CreateUsersWithListInputJSONRequestBody = CreateUsersWithListInputJSONBody
CreateUsersWithListInputJSONRequestBody defines body for CreateUsersWithListInput for application/json ContentType.
type CreateUsersWithListInputRequestObject ¶
type CreateUsersWithListInputRequestObject struct {
Body *CreateUsersWithListInputJSONRequestBody
}
type CreateUsersWithListInputResponseObject ¶
type CreateUsersWithListInputResponseObject interface {
VisitCreateUsersWithListInputResponse(w http.ResponseWriter) error
}
type CreateUsersWithListInputdefaultResponse ¶
type CreateUsersWithListInputdefaultResponse struct {
StatusCode int
}
func (CreateUsersWithListInputdefaultResponse) VisitCreateUsersWithListInputResponse ¶
func (response CreateUsersWithListInputdefaultResponse) VisitCreateUsersWithListInputResponse(w http.ResponseWriter) error
type DeleteOrder200Response ¶
type DeleteOrder200Response struct {
}
func (DeleteOrder200Response) VisitDeleteOrderResponse ¶
func (response DeleteOrder200Response) VisitDeleteOrderResponse(w http.ResponseWriter) error
type DeleteOrder400Response ¶
type DeleteOrder400Response struct {
}
func (DeleteOrder400Response) VisitDeleteOrderResponse ¶
func (response DeleteOrder400Response) VisitDeleteOrderResponse(w http.ResponseWriter) error
type DeleteOrder404Response ¶
type DeleteOrder404Response struct {
}
func (DeleteOrder404Response) VisitDeleteOrderResponse ¶
func (response DeleteOrder404Response) VisitDeleteOrderResponse(w http.ResponseWriter) error
type DeleteOrderRequestObject ¶
type DeleteOrderRequestObject struct {
OrderId int64 `json:"orderId"`
}
type DeleteOrderResponseObject ¶
type DeleteOrderResponseObject interface {
VisitDeleteOrderResponse(w http.ResponseWriter) error
}
type DeleteOrderdefaultResponse ¶
type DeleteOrderdefaultResponse struct {
StatusCode int
}
func (DeleteOrderdefaultResponse) VisitDeleteOrderResponse ¶
func (response DeleteOrderdefaultResponse) VisitDeleteOrderResponse(w http.ResponseWriter) error
type DeletePet200JSONResponse ¶
type DeletePet200JSONResponse struct {
Message *string `json:"message,omitempty"`
}
func (DeletePet200JSONResponse) VisitDeletePetResponse ¶
func (response DeletePet200JSONResponse) VisitDeletePetResponse(w http.ResponseWriter) error
type DeletePet204Response ¶
type DeletePet204Response struct {
}
func (DeletePet204Response) VisitDeletePetResponse ¶
func (response DeletePet204Response) VisitDeletePetResponse(w http.ResponseWriter) error
type DeletePet400JSONResponse ¶
type DeletePet400JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (DeletePet400JSONResponse) VisitDeletePetResponse ¶
func (response DeletePet400JSONResponse) VisitDeletePetResponse(w http.ResponseWriter) error
type DeletePet404JSONResponse ¶
type DeletePet404JSONResponse struct {
Error *string `json:"error,omitempty"`
}
func (DeletePet404JSONResponse) VisitDeletePetResponse ¶
func (response DeletePet404JSONResponse) VisitDeletePetResponse(w http.ResponseWriter) error
type DeletePetParams ¶
type DeletePetParams struct {
ApiKey *string `json:"api_key,omitempty"`
}
DeletePetParams defines parameters for DeletePet.
type DeletePetRequestObject ¶
type DeletePetRequestObject struct {
PetId int64 `json:"petId"`
Params DeletePetParams
}
type DeletePetResponseObject ¶
type DeletePetResponseObject interface {
VisitDeletePetResponse(w http.ResponseWriter) error
}
type DeletePetdefaultResponse ¶
type DeletePetdefaultResponse struct {
StatusCode int
}
func (DeletePetdefaultResponse) VisitDeletePetResponse ¶
func (response DeletePetdefaultResponse) VisitDeletePetResponse(w http.ResponseWriter) error
type DeleteUser200Response ¶
type DeleteUser200Response struct {
}
func (DeleteUser200Response) VisitDeleteUserResponse ¶
func (response DeleteUser200Response) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser400Response ¶
type DeleteUser400Response struct {
}
func (DeleteUser400Response) VisitDeleteUserResponse ¶
func (response DeleteUser400Response) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser404Response ¶
type DeleteUser404Response struct {
}
func (DeleteUser404Response) VisitDeleteUserResponse ¶
func (response DeleteUser404Response) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUserRequestObject ¶
type DeleteUserRequestObject struct {
Username string `json:"username"`
}
type DeleteUserResponseObject ¶
type DeleteUserResponseObject interface {
VisitDeleteUserResponse(w http.ResponseWriter) error
}
type DeleteUserdefaultResponse ¶
type DeleteUserdefaultResponse struct {
StatusCode int
}
func (DeleteUserdefaultResponse) VisitDeleteUserResponse ¶
func (response DeleteUserdefaultResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type Error ¶
type Error struct {
// Message Message is a human-readable description of the error.
Message *string `json:"message,omitempty"`
}
Error defines model for error.
type ErrorJSONResponse ¶
type ErrorJSONResponse Error
type ExpectOption ¶
type ExpectOption func(*expectOpts)
func Times ¶
func Times(n int) ExpectOption
func WithError ¶
func WithError(err error) ExpectOption
type FindPetsByStatus200ApplicationxmlResponse ¶
func (FindPetsByStatus200ApplicationxmlResponse) VisitFindPetsByStatusResponse ¶
func (response FindPetsByStatus200ApplicationxmlResponse) VisitFindPetsByStatusResponse(w http.ResponseWriter) error
type FindPetsByStatus200JSONResponse ¶
type FindPetsByStatus200JSONResponse []Pet
func (FindPetsByStatus200JSONResponse) VisitFindPetsByStatusResponse ¶
func (response FindPetsByStatus200JSONResponse) VisitFindPetsByStatusResponse(w http.ResponseWriter) error
type FindPetsByStatus400Response ¶
type FindPetsByStatus400Response struct {
}
func (FindPetsByStatus400Response) VisitFindPetsByStatusResponse ¶
func (response FindPetsByStatus400Response) VisitFindPetsByStatusResponse(w http.ResponseWriter) error
type FindPetsByStatusParams ¶
type FindPetsByStatusParams struct {
// Status Status values that need to be considered for filter
Status FindPetsByStatusParamsStatus `form:"status" json:"status"`
}
FindPetsByStatusParams defines parameters for FindPetsByStatus.
type FindPetsByStatusParamsStatus ¶
type FindPetsByStatusParamsStatus string
FindPetsByStatusParamsStatus defines parameters for FindPetsByStatus.
const ( FindPetsByStatusParamsStatusAvailable FindPetsByStatusParamsStatus = "available" FindPetsByStatusParamsStatusPending FindPetsByStatusParamsStatus = "pending" FindPetsByStatusParamsStatusSold FindPetsByStatusParamsStatus = "sold" )
Defines values for FindPetsByStatusParamsStatus.
type FindPetsByStatusRequestObject ¶
type FindPetsByStatusRequestObject struct {
Params FindPetsByStatusParams
}
type FindPetsByStatusResponseObject ¶
type FindPetsByStatusResponseObject interface {
VisitFindPetsByStatusResponse(w http.ResponseWriter) error
}
type FindPetsByStatusdefaultResponse ¶
type FindPetsByStatusdefaultResponse struct {
StatusCode int
}
func (FindPetsByStatusdefaultResponse) VisitFindPetsByStatusResponse ¶
func (response FindPetsByStatusdefaultResponse) VisitFindPetsByStatusResponse(w http.ResponseWriter) error
type FindPetsByTags200ApplicationxmlResponse ¶
func (FindPetsByTags200ApplicationxmlResponse) VisitFindPetsByTagsResponse ¶
func (response FindPetsByTags200ApplicationxmlResponse) VisitFindPetsByTagsResponse(w http.ResponseWriter) error
type FindPetsByTags200JSONResponse ¶
type FindPetsByTags200JSONResponse []Pet
func (FindPetsByTags200JSONResponse) VisitFindPetsByTagsResponse ¶
func (response FindPetsByTags200JSONResponse) VisitFindPetsByTagsResponse(w http.ResponseWriter) error
type FindPetsByTags400Response ¶
type FindPetsByTags400Response struct {
}
func (FindPetsByTags400Response) VisitFindPetsByTagsResponse ¶
func (response FindPetsByTags400Response) VisitFindPetsByTagsResponse(w http.ResponseWriter) error
type FindPetsByTagsParams ¶
type FindPetsByTagsParams struct {
// Tags Tags to filter by
Tags []string `form:"tags" json:"tags"`
}
FindPetsByTagsParams defines parameters for FindPetsByTags.
type FindPetsByTagsRequestObject ¶
type FindPetsByTagsRequestObject struct {
Params FindPetsByTagsParams
}
type FindPetsByTagsResponseObject ¶
type FindPetsByTagsResponseObject interface {
VisitFindPetsByTagsResponse(w http.ResponseWriter) error
}
type FindPetsByTagsdefaultResponse ¶
type FindPetsByTagsdefaultResponse struct {
StatusCode int
}
func (FindPetsByTagsdefaultResponse) VisitFindPetsByTagsResponse ¶
func (response FindPetsByTagsdefaultResponse) VisitFindPetsByTagsResponse(w http.ResponseWriter) error
type GetOrderById200ApplicationxmlResponse ¶
func (GetOrderById200ApplicationxmlResponse) VisitGetOrderByIdResponse ¶
func (response GetOrderById200ApplicationxmlResponse) VisitGetOrderByIdResponse(w http.ResponseWriter) error
type GetOrderById200JSONResponse ¶
type GetOrderById200JSONResponse Order
func (GetOrderById200JSONResponse) VisitGetOrderByIdResponse ¶
func (response GetOrderById200JSONResponse) VisitGetOrderByIdResponse(w http.ResponseWriter) error
type GetOrderById400Response ¶
type GetOrderById400Response struct {
}
func (GetOrderById400Response) VisitGetOrderByIdResponse ¶
func (response GetOrderById400Response) VisitGetOrderByIdResponse(w http.ResponseWriter) error
type GetOrderById404Response ¶
type GetOrderById404Response struct {
}
func (GetOrderById404Response) VisitGetOrderByIdResponse ¶
func (response GetOrderById404Response) VisitGetOrderByIdResponse(w http.ResponseWriter) error
type GetOrderByIdRequestObject ¶
type GetOrderByIdRequestObject struct {
OrderId int64 `json:"orderId"`
}
type GetOrderByIdResponseObject ¶
type GetOrderByIdResponseObject interface {
VisitGetOrderByIdResponse(w http.ResponseWriter) error
}
type GetOrderByIddefaultResponse ¶
type GetOrderByIddefaultResponse struct {
StatusCode int
}
func (GetOrderByIddefaultResponse) VisitGetOrderByIdResponse ¶
func (response GetOrderByIddefaultResponse) VisitGetOrderByIdResponse(w http.ResponseWriter) error
type GetPetById200ApplicationVndPetstorePlusJSONResponse ¶
type GetPetById200ApplicationVndPetstorePlusJSONResponse Pet
func (GetPetById200ApplicationVndPetstorePlusJSONResponse) VisitGetPetByIdResponse ¶
func (response GetPetById200ApplicationVndPetstorePlusJSONResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetById200ApplicationxmlResponse ¶
func (GetPetById200ApplicationxmlResponse) VisitGetPetByIdResponse ¶
func (response GetPetById200ApplicationxmlResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetById200JSONResponse ¶
type GetPetById200JSONResponse Pet
func (GetPetById200JSONResponse) VisitGetPetByIdResponse ¶
func (response GetPetById200JSONResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetById400ApplicationxmlResponse ¶
type GetPetById400ApplicationxmlResponse struct{ ErrorApplicationxmlResponse }
func (GetPetById400ApplicationxmlResponse) VisitGetPetByIdResponse ¶
func (response GetPetById400ApplicationxmlResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetById400JSONResponse ¶
type GetPetById400JSONResponse struct{ ErrorJSONResponse }
func (GetPetById400JSONResponse) VisitGetPetByIdResponse ¶
func (response GetPetById400JSONResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetById404ApplicationxmlResponse ¶
func (GetPetById404ApplicationxmlResponse) VisitGetPetByIdResponse ¶
func (response GetPetById404ApplicationxmlResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetById404JSONResponse ¶
type GetPetById404JSONResponse Error
func (GetPetById404JSONResponse) VisitGetPetByIdResponse ¶
func (response GetPetById404JSONResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetByIdRequestObject ¶
type GetPetByIdRequestObject struct {
PetId int64 `json:"petId"`
}
type GetPetByIdResponseObject ¶
type GetPetByIdResponseObject interface {
VisitGetPetByIdResponse(w http.ResponseWriter) error
}
type GetPetByIddefaultResponse ¶
type GetPetByIddefaultResponse struct {
StatusCode int
}
func (GetPetByIddefaultResponse) VisitGetPetByIdResponse ¶
func (response GetPetByIddefaultResponse) VisitGetPetByIdResponse(w http.ResponseWriter) error
type GetPetMetadata200JSONResponse ¶
func (GetPetMetadata200JSONResponse) VisitGetPetMetadataResponse ¶
func (response GetPetMetadata200JSONResponse) VisitGetPetMetadataResponse(w http.ResponseWriter) error
type GetPetMetadata204Response ¶
type GetPetMetadata204Response struct {
}
func (GetPetMetadata204Response) VisitGetPetMetadataResponse ¶
func (response GetPetMetadata204Response) VisitGetPetMetadataResponse(w http.ResponseWriter) error
type GetPetMetadata404ApplicationxmlResponse ¶
type GetPetMetadata404ApplicationxmlResponse struct{ ErrorApplicationxmlResponse }
func (GetPetMetadata404ApplicationxmlResponse) VisitGetPetMetadataResponse ¶
func (response GetPetMetadata404ApplicationxmlResponse) VisitGetPetMetadataResponse(w http.ResponseWriter) error
type GetPetMetadata404JSONResponse ¶
type GetPetMetadata404JSONResponse struct{ ErrorJSONResponse }
func (GetPetMetadata404JSONResponse) VisitGetPetMetadataResponse ¶
func (response GetPetMetadata404JSONResponse) VisitGetPetMetadataResponse(w http.ResponseWriter) error
type GetPetMetadataParams ¶
type GetPetMetadataParams struct {
// IncludeHistory Include historical metadata
IncludeHistory *bool `form:"includeHistory,omitempty" json:"includeHistory,omitempty"`
}
GetPetMetadataParams defines parameters for GetPetMetadata.
type GetPetMetadataRequestObject ¶
type GetPetMetadataRequestObject struct {
PetId int64 `json:"petId"`
Params GetPetMetadataParams
}
type GetPetMetadataResponseObject ¶
type GetPetMetadataResponseObject interface {
VisitGetPetMetadataResponse(w http.ResponseWriter) error
}
type GetPetMetadatadefaultResponse ¶
type GetPetMetadatadefaultResponse struct {
StatusCode int
}
func (GetPetMetadatadefaultResponse) VisitGetPetMetadataResponse ¶
func (response GetPetMetadatadefaultResponse) VisitGetPetMetadataResponse(w http.ResponseWriter) error
type GetPetPhotoById200JSONResponse ¶
type GetPetPhotoById200JSONResponse PetPhoto
func (GetPetPhotoById200JSONResponse) VisitGetPetPhotoByIdResponse ¶
func (response GetPetPhotoById200JSONResponse) VisitGetPetPhotoByIdResponse(w http.ResponseWriter) error
type GetPetPhotoById404ApplicationxmlResponse ¶
type GetPetPhotoById404ApplicationxmlResponse struct{ ErrorApplicationxmlResponse }
func (GetPetPhotoById404ApplicationxmlResponse) VisitGetPetPhotoByIdResponse ¶
func (response GetPetPhotoById404ApplicationxmlResponse) VisitGetPetPhotoByIdResponse(w http.ResponseWriter) error
type GetPetPhotoById404JSONResponse ¶
type GetPetPhotoById404JSONResponse struct{ ErrorJSONResponse }
func (GetPetPhotoById404JSONResponse) VisitGetPetPhotoByIdResponse ¶
func (response GetPetPhotoById404JSONResponse) VisitGetPetPhotoByIdResponse(w http.ResponseWriter) error
type GetPetPhotoByIdResponseObject ¶
type GetPetPhotoByIdResponseObject interface {
VisitGetPetPhotoByIdResponse(w http.ResponseWriter) error
}
type GetPetPhotoByIddefaultResponse ¶
type GetPetPhotoByIddefaultResponse struct {
StatusCode int
}
func (GetPetPhotoByIddefaultResponse) VisitGetPetPhotoByIdResponse ¶
func (response GetPetPhotoByIddefaultResponse) VisitGetPetPhotoByIdResponse(w http.ResponseWriter) error
type GetPetRegistration200JSONResponse ¶
type GetPetRegistration200JSONResponse PetWithCustomTypes
func (GetPetRegistration200JSONResponse) VisitGetPetRegistrationResponse ¶
func (response GetPetRegistration200JSONResponse) VisitGetPetRegistrationResponse(w http.ResponseWriter) error
type GetPetRegistration404JSONResponse ¶
type GetPetRegistration404JSONResponse Error
func (GetPetRegistration404JSONResponse) VisitGetPetRegistrationResponse ¶
func (response GetPetRegistration404JSONResponse) VisitGetPetRegistrationResponse(w http.ResponseWriter) error
type GetPetRegistrationRequestObject ¶
type GetPetRegistrationRequestObject struct {
PetId int64 `json:"petId"`
}
type GetPetRegistrationResponseObject ¶
type GetPetRegistrationResponseObject interface {
VisitGetPetRegistrationResponse(w http.ResponseWriter) error
}
type GetStoreInventory200JSONResponse ¶
func (GetStoreInventory200JSONResponse) VisitGetStoreInventoryResponse ¶
func (response GetStoreInventory200JSONResponse) VisitGetStoreInventoryResponse(w http.ResponseWriter) error
type GetStoreInventoryRequestObject ¶
type GetStoreInventoryRequestObject struct {
}
type GetStoreInventoryResponseObject ¶
type GetStoreInventoryResponseObject interface {
VisitGetStoreInventoryResponse(w http.ResponseWriter) error
}
type GetStoreInventorydefaultResponse ¶
type GetStoreInventorydefaultResponse struct {
StatusCode int
}
func (GetStoreInventorydefaultResponse) VisitGetStoreInventoryResponse ¶
func (response GetStoreInventorydefaultResponse) VisitGetStoreInventoryResponse(w http.ResponseWriter) error
type GetUserByName200ApplicationxmlResponse ¶
func (GetUserByName200ApplicationxmlResponse) VisitGetUserByNameResponse ¶
func (response GetUserByName200ApplicationxmlResponse) VisitGetUserByNameResponse(w http.ResponseWriter) error
type GetUserByName200JSONResponse ¶
type GetUserByName200JSONResponse externalRef0.User
func (GetUserByName200JSONResponse) VisitGetUserByNameResponse ¶
func (response GetUserByName200JSONResponse) VisitGetUserByNameResponse(w http.ResponseWriter) error
type GetUserByName400Response ¶
type GetUserByName400Response struct {
}
func (GetUserByName400Response) VisitGetUserByNameResponse ¶
func (response GetUserByName400Response) VisitGetUserByNameResponse(w http.ResponseWriter) error
type GetUserByName404Response ¶
type GetUserByName404Response struct {
}
func (GetUserByName404Response) VisitGetUserByNameResponse ¶
func (response GetUserByName404Response) VisitGetUserByNameResponse(w http.ResponseWriter) error
type GetUserByNameRequestObject ¶
type GetUserByNameRequestObject struct {
Username string `json:"username"`
}
type GetUserByNameResponseObject ¶
type GetUserByNameResponseObject interface {
VisitGetUserByNameResponse(w http.ResponseWriter) error
}
type GetUserByNamedefaultResponse ¶
type GetUserByNamedefaultResponse struct {
StatusCode int
}
func (GetUserByNamedefaultResponse) VisitGetUserByNameResponse ¶
func (response GetUserByNamedefaultResponse) VisitGetUserByNameResponse(w http.ResponseWriter) error
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LoginUser200ApplicationxmlResponse ¶
type LoginUser200ApplicationxmlResponse struct {
Body io.Reader
Headers LoginUser200ResponseHeaders
ContentLength int64
}
func (LoginUser200ApplicationxmlResponse) VisitLoginUserResponse ¶
func (response LoginUser200ApplicationxmlResponse) VisitLoginUserResponse(w http.ResponseWriter) error
type LoginUser200JSONResponse ¶
type LoginUser200JSONResponse struct {
Body string
Headers LoginUser200ResponseHeaders
}
func (LoginUser200JSONResponse) VisitLoginUserResponse ¶
func (response LoginUser200JSONResponse) VisitLoginUserResponse(w http.ResponseWriter) error
type LoginUser400Response ¶
type LoginUser400Response struct {
}
func (LoginUser400Response) VisitLoginUserResponse ¶
func (response LoginUser400Response) VisitLoginUserResponse(w http.ResponseWriter) error
type LoginUserParams ¶
type LoginUserParams struct {
// Username The user name for login
Username *string `form:"username,omitempty" json:"username,omitempty"`
// Password The password for login in clear text
Password *string `form:"password,omitempty" json:"password,omitempty"`
}
LoginUserParams defines parameters for LoginUser.
type LoginUserRequestObject ¶
type LoginUserRequestObject struct {
Params LoginUserParams
}
type LoginUserResponseObject ¶
type LoginUserResponseObject interface {
VisitLoginUserResponse(w http.ResponseWriter) error
}
type LoginUserdefaultResponse ¶
type LoginUserdefaultResponse struct {
StatusCode int
}
func (LoginUserdefaultResponse) VisitLoginUserResponse ¶
func (response LoginUserdefaultResponse) VisitLoginUserResponse(w http.ResponseWriter) error
type LogoutUser200Response ¶
type LogoutUser200Response struct {
}
func (LogoutUser200Response) VisitLogoutUserResponse ¶
func (response LogoutUser200Response) VisitLogoutUserResponse(w http.ResponseWriter) error
type LogoutUserRequestObject ¶
type LogoutUserRequestObject struct {
}
type LogoutUserResponseObject ¶
type LogoutUserResponseObject interface {
VisitLogoutUserResponse(w http.ResponseWriter) error
}
type LogoutUserdefaultResponse ¶
type LogoutUserdefaultResponse struct {
StatusCode int
}
func (LogoutUserdefaultResponse) VisitLogoutUserResponse ¶
func (response LogoutUserdefaultResponse) VisitLogoutUserResponse(w http.ResponseWriter) error
type Order ¶
type Order struct {
Complete *bool `json:"complete,omitempty"`
Id *int64 `json:"id,omitempty"`
PetId *int64 `json:"petId,omitempty"`
Quantity *int32 `json:"quantity,omitempty"`
ShipDate *time.Time `json:"shipDate,omitempty"`
// Status Order Status
Status *OrderStatus `json:"status,omitempty"`
}
Order defines model for Order.
type OrderStatus ¶
type OrderStatus string
OrderStatus Order Status
const ( OrderStatusApproved OrderStatus = "approved" OrderStatusDelivered OrderStatus = "delivered" OrderStatusPlaced OrderStatus = "placed" )
Defines values for OrderStatus.
type Pet ¶
type Pet struct {
Category *Category `json:"category,omitempty"`
Id *int64 `json:"id,omitempty"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls"`
// Status pet status in the store
Status *PetStatus `json:"status,omitempty"`
Tags *[]Tag `json:"tags,omitempty"`
}
Pet defines model for Pet.
type PetPhoto ¶
type PetPhoto struct {
Caption *string `json:"caption,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
Id *int64 `json:"id,omitempty"`
// Metadata Tests additionalProperties with typed values
Metadata *map[string]string `json:"metadata,omitempty"`
PetId *int64 `json:"petId,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Url *string `json:"url,omitempty"`
}
PetPhoto defines model for PetPhoto.
type PetWithCustomTypes ¶
type PetWithCustomTypes struct {
CreatedAt *Timestamp `json:"createdAt,omitempty"`
Id *int64 `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
RegistrationId *UUID `json:"registrationId,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
PetWithCustomTypes defines model for PetWithCustomTypes.
type PostStoreOrder200JSONResponse ¶
type PostStoreOrder200JSONResponse Order
func (PostStoreOrder200JSONResponse) VisitPostStoreOrderResponse ¶
func (response PostStoreOrder200JSONResponse) VisitPostStoreOrderResponse(w http.ResponseWriter) error
type PostStoreOrder400Response ¶
type PostStoreOrder400Response struct {
}
func (PostStoreOrder400Response) VisitPostStoreOrderResponse ¶
func (response PostStoreOrder400Response) VisitPostStoreOrderResponse(w http.ResponseWriter) error
type PostStoreOrder422Response ¶
type PostStoreOrder422Response struct {
}
func (PostStoreOrder422Response) VisitPostStoreOrderResponse ¶
func (response PostStoreOrder422Response) VisitPostStoreOrderResponse(w http.ResponseWriter) error
type PostStoreOrderFormdataRequestBody ¶
type PostStoreOrderFormdataRequestBody = Order
PostStoreOrderFormdataRequestBody defines body for PostStoreOrder for application/x-www-form-urlencoded ContentType.
type PostStoreOrderJSONRequestBody ¶
type PostStoreOrderJSONRequestBody = Order
PostStoreOrderJSONRequestBody defines body for PostStoreOrder for application/json ContentType.
type PostStoreOrderRequestObject ¶
type PostStoreOrderRequestObject struct {
JSONBody *PostStoreOrderJSONRequestBody
FormdataBody *PostStoreOrderFormdataRequestBody
Body io.Reader
}
type PostStoreOrderResponseObject ¶
type PostStoreOrderResponseObject interface {
VisitPostStoreOrderResponse(w http.ResponseWriter) error
}
type PostStoreOrderdefaultResponse ¶
type PostStoreOrderdefaultResponse struct {
StatusCode int
}
func (PostStoreOrderdefaultResponse) VisitPostStoreOrderResponse ¶
func (response PostStoreOrderdefaultResponse) VisitPostStoreOrderResponse(w http.ResponseWriter) error
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
ServeHTTP(w http.ResponseWriter, r *http.Request)
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// Add a new pet to the store.
// (POST /pet)
AddPet(w http.ResponseWriter, r *http.Request)
// Update an existing pet.
// (PUT /pet)
UpdatePet(w http.ResponseWriter, r *http.Request)
// Finds Pets by status.
// (GET /pet/findByStatus)
FindPetsByStatus(w http.ResponseWriter, r *http.Request, params FindPetsByStatusParams)
// Finds Pets by tags.
// (GET /pet/findByTags)
FindPetsByTags(w http.ResponseWriter, r *http.Request, params FindPetsByTagsParams)
// Deletes a pet.
// (DELETE /pet/{petId})
DeletePet(w http.ResponseWriter, r *http.Request, petId int64, params DeletePetParams)
// Find pet by ID.
// (GET /pet/{petId})
GetPetById(w http.ResponseWriter, r *http.Request, petId int64)
// Updates a pet in the store with form data.
// (POST /pet/{petId})
UpdatePetWithForm(w http.ResponseWriter, r *http.Request, petId int64, params UpdatePetWithFormParams)
// Get pet metadata.
// (GET /pet/{petId}/metadata)
GetPetMetadata(w http.ResponseWriter, r *http.Request, petId int64, params GetPetMetadataParams)
// Get pet photo by ID.
// (GET /pet/{petId}/photos/{photoId})
GetPetPhotoById(w http.ResponseWriter, r *http.Request, petId int64, photoId int64)
// Get pet registration details with custom types
// (GET /pet/{petId}/registration)
GetPetRegistration(w http.ResponseWriter, r *http.Request, petId int64)
// Uploads an image.
// (POST /pet/{petId}/uploadImage)
UploadFile(w http.ResponseWriter, r *http.Request, petId int64, params UploadFileParams)
// Returns pet inventories by status.
// (GET /store/inventory)
GetStoreInventory(w http.ResponseWriter, r *http.Request)
// Place an order for a pet.
// (POST /store/order)
PostStoreOrder(w http.ResponseWriter, r *http.Request)
// Delete purchase order by identifier.
// (DELETE /store/order/{orderId})
DeleteOrder(w http.ResponseWriter, r *http.Request, orderId int64)
// Find purchase order by ID.
// (GET /store/order/{orderId})
GetOrderById(w http.ResponseWriter, r *http.Request, orderId int64)
// Create user.
// (POST /user)
CreateUser(w http.ResponseWriter, r *http.Request)
// Creates list of users with given input array.
// (POST /user/createWithList)
CreateUsersWithListInput(w http.ResponseWriter, r *http.Request)
// Logs user into the system.
// (GET /user/login)
LoginUser(w http.ResponseWriter, r *http.Request, params LoginUserParams)
// Logs out current logged in user session.
// (GET /user/logout)
LogoutUser(w http.ResponseWriter, r *http.Request)
// Delete user resource.
// (DELETE /user/{username})
DeleteUser(w http.ResponseWriter, r *http.Request, username string)
// Get user by user name.
// (GET /user/{username})
GetUserByName(w http.ResponseWriter, r *http.Request, username string)
// Update user resource.
// (PUT /user/{username})
UpdateUser(w http.ResponseWriter, r *http.Request, username string)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AddPet ¶
func (siw *ServerInterfaceWrapper) AddPet(w http.ResponseWriter, r *http.Request)
AddPet operation middleware
func (*ServerInterfaceWrapper) CreateUser ¶
func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser operation middleware
func (*ServerInterfaceWrapper) CreateUsersWithListInput ¶
func (siw *ServerInterfaceWrapper) CreateUsersWithListInput(w http.ResponseWriter, r *http.Request)
CreateUsersWithListInput operation middleware
func (*ServerInterfaceWrapper) DeleteOrder ¶
func (siw *ServerInterfaceWrapper) DeleteOrder(w http.ResponseWriter, r *http.Request)
DeleteOrder operation middleware
func (*ServerInterfaceWrapper) DeletePet ¶
func (siw *ServerInterfaceWrapper) DeletePet(w http.ResponseWriter, r *http.Request)
DeletePet operation middleware
func (*ServerInterfaceWrapper) DeleteUser ¶
func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
DeleteUser operation middleware
func (*ServerInterfaceWrapper) FindPetsByStatus ¶
func (siw *ServerInterfaceWrapper) FindPetsByStatus(w http.ResponseWriter, r *http.Request)
FindPetsByStatus operation middleware
func (*ServerInterfaceWrapper) FindPetsByTags ¶
func (siw *ServerInterfaceWrapper) FindPetsByTags(w http.ResponseWriter, r *http.Request)
FindPetsByTags operation middleware
func (*ServerInterfaceWrapper) GetOrderById ¶
func (siw *ServerInterfaceWrapper) GetOrderById(w http.ResponseWriter, r *http.Request)
GetOrderById operation middleware
func (*ServerInterfaceWrapper) GetPetById ¶
func (siw *ServerInterfaceWrapper) GetPetById(w http.ResponseWriter, r *http.Request)
GetPetById operation middleware
func (*ServerInterfaceWrapper) GetPetMetadata ¶
func (siw *ServerInterfaceWrapper) GetPetMetadata(w http.ResponseWriter, r *http.Request)
GetPetMetadata operation middleware
func (*ServerInterfaceWrapper) GetPetPhotoById ¶
func (siw *ServerInterfaceWrapper) GetPetPhotoById(w http.ResponseWriter, r *http.Request)
GetPetPhotoById operation middleware
func (*ServerInterfaceWrapper) GetPetRegistration ¶
func (siw *ServerInterfaceWrapper) GetPetRegistration(w http.ResponseWriter, r *http.Request)
GetPetRegistration operation middleware
func (*ServerInterfaceWrapper) GetStoreInventory ¶
func (siw *ServerInterfaceWrapper) GetStoreInventory(w http.ResponseWriter, r *http.Request)
GetStoreInventory operation middleware
func (*ServerInterfaceWrapper) GetUserByName ¶
func (siw *ServerInterfaceWrapper) GetUserByName(w http.ResponseWriter, r *http.Request)
GetUserByName operation middleware
func (*ServerInterfaceWrapper) LoginUser ¶
func (siw *ServerInterfaceWrapper) LoginUser(w http.ResponseWriter, r *http.Request)
LoginUser operation middleware
func (*ServerInterfaceWrapper) LogoutUser ¶
func (siw *ServerInterfaceWrapper) LogoutUser(w http.ResponseWriter, r *http.Request)
LogoutUser operation middleware
func (*ServerInterfaceWrapper) PostStoreOrder ¶
func (siw *ServerInterfaceWrapper) PostStoreOrder(w http.ResponseWriter, r *http.Request)
PostStoreOrder operation middleware
func (*ServerInterfaceWrapper) UpdatePet ¶
func (siw *ServerInterfaceWrapper) UpdatePet(w http.ResponseWriter, r *http.Request)
UpdatePet operation middleware
func (*ServerInterfaceWrapper) UpdatePetWithForm ¶
func (siw *ServerInterfaceWrapper) UpdatePetWithForm(w http.ResponseWriter, r *http.Request)
UpdatePetWithForm operation middleware
func (*ServerInterfaceWrapper) UpdateUser ¶
func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)
UpdateUser operation middleware
func (*ServerInterfaceWrapper) UploadFile ¶
func (siw *ServerInterfaceWrapper) UploadFile(w http.ResponseWriter, r *http.Request)
UploadFile operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// Add a new pet to the store.
// (POST /pet)
AddPet(ctx context.Context, request AddPetRequestObject) (AddPetResponseObject, error)
// Update an existing pet.
// (PUT /pet)
UpdatePet(ctx context.Context, request UpdatePetRequestObject) (UpdatePetResponseObject, error)
// Finds Pets by status.
// (GET /pet/findByStatus)
FindPetsByStatus(ctx context.Context, request FindPetsByStatusRequestObject) (FindPetsByStatusResponseObject, error)
// Finds Pets by tags.
// (GET /pet/findByTags)
FindPetsByTags(ctx context.Context, request FindPetsByTagsRequestObject) (FindPetsByTagsResponseObject, error)
// Deletes a pet.
// (DELETE /pet/{petId})
DeletePet(ctx context.Context, request DeletePetRequestObject) (DeletePetResponseObject, error)
// Find pet by ID.
// (GET /pet/{petId})
GetPetById(ctx context.Context, request GetPetByIdRequestObject) (GetPetByIdResponseObject, error)
// Updates a pet in the store with form data.
// (POST /pet/{petId})
UpdatePetWithForm(ctx context.Context, request UpdatePetWithFormRequestObject) (UpdatePetWithFormResponseObject, error)
// Get pet metadata.
// (GET /pet/{petId}/metadata)
GetPetMetadata(ctx context.Context, request GetPetMetadataRequestObject) (GetPetMetadataResponseObject, error)
// Get pet photo by ID.
// (GET /pet/{petId}/photos/{photoId})
GetPetPhotoById(ctx context.Context, request GetPetPhotoByIdRequestObject) (GetPetPhotoByIdResponseObject, error)
// Get pet registration details with custom types
// (GET /pet/{petId}/registration)
GetPetRegistration(ctx context.Context, request GetPetRegistrationRequestObject) (GetPetRegistrationResponseObject, error)
// Uploads an image.
// (POST /pet/{petId}/uploadImage)
UploadFile(ctx context.Context, request UploadFileRequestObject) (UploadFileResponseObject, error)
// Returns pet inventories by status.
// (GET /store/inventory)
GetStoreInventory(ctx context.Context, request GetStoreInventoryRequestObject) (GetStoreInventoryResponseObject, error)
// Place an order for a pet.
// (POST /store/order)
PostStoreOrder(ctx context.Context, request PostStoreOrderRequestObject) (PostStoreOrderResponseObject, error)
// Delete purchase order by identifier.
// (DELETE /store/order/{orderId})
DeleteOrder(ctx context.Context, request DeleteOrderRequestObject) (DeleteOrderResponseObject, error)
// Find purchase order by ID.
// (GET /store/order/{orderId})
GetOrderById(ctx context.Context, request GetOrderByIdRequestObject) (GetOrderByIdResponseObject, error)
// Create user.
// (POST /user)
CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
// Creates list of users with given input array.
// (POST /user/createWithList)
CreateUsersWithListInput(ctx context.Context, request CreateUsersWithListInputRequestObject) (CreateUsersWithListInputResponseObject, error)
// Logs user into the system.
// (GET /user/login)
LoginUser(ctx context.Context, request LoginUserRequestObject) (LoginUserResponseObject, error)
// Logs out current logged in user session.
// (GET /user/logout)
LogoutUser(ctx context.Context, request LogoutUserRequestObject) (LogoutUserResponseObject, error)
// Delete user resource.
// (DELETE /user/{username})
DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
// Get user by user name.
// (GET /user/{username})
GetUserByName(ctx context.Context, request GetUserByNameRequestObject) (GetUserByNameResponseObject, error)
// Update user resource.
// (PUT /user/{username})
UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TestHandler ¶
type TestHandler struct {
// contains filtered or unexported fields
}
func NewTestHandler ¶
func NewTestHandler(tb TB) *TestHandler
func (*TestHandler) ExpectAddPet ¶
func (s *TestHandler) ExpectAddPet( req AddPetRequestObject, resp AddPetResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectCreateUser ¶
func (s *TestHandler) ExpectCreateUser( req CreateUserRequestObject, resp CreateUserResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectCreateUsersWithListInput ¶
func (s *TestHandler) ExpectCreateUsersWithListInput( req CreateUsersWithListInputRequestObject, resp CreateUsersWithListInputResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectDeleteOrder ¶
func (s *TestHandler) ExpectDeleteOrder( req DeleteOrderRequestObject, resp DeleteOrderResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectDeletePet ¶
func (s *TestHandler) ExpectDeletePet( req DeletePetRequestObject, resp DeletePetResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectDeleteUser ¶
func (s *TestHandler) ExpectDeleteUser( req DeleteUserRequestObject, resp DeleteUserResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectFindPetsByStatus ¶
func (s *TestHandler) ExpectFindPetsByStatus( req FindPetsByStatusRequestObject, resp FindPetsByStatusResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectFindPetsByTags ¶
func (s *TestHandler) ExpectFindPetsByTags( req FindPetsByTagsRequestObject, resp FindPetsByTagsResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetOrderById ¶
func (s *TestHandler) ExpectGetOrderById( req GetOrderByIdRequestObject, resp GetOrderByIdResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetPetById ¶
func (s *TestHandler) ExpectGetPetById( req GetPetByIdRequestObject, resp GetPetByIdResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetPetMetadata ¶
func (s *TestHandler) ExpectGetPetMetadata( req GetPetMetadataRequestObject, resp GetPetMetadataResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetPetPhotoById ¶
func (s *TestHandler) ExpectGetPetPhotoById( req GetPetPhotoByIdRequestObject, resp GetPetPhotoByIdResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetPetRegistration ¶
func (s *TestHandler) ExpectGetPetRegistration( req GetPetRegistrationRequestObject, resp GetPetRegistrationResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetStoreInventory ¶
func (s *TestHandler) ExpectGetStoreInventory( req GetStoreInventoryRequestObject, resp GetStoreInventoryResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectGetUserByName ¶
func (s *TestHandler) ExpectGetUserByName( req GetUserByNameRequestObject, resp GetUserByNameResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectLoginUser ¶
func (s *TestHandler) ExpectLoginUser( req LoginUserRequestObject, resp LoginUserResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectLogoutUser ¶
func (s *TestHandler) ExpectLogoutUser( req LogoutUserRequestObject, resp LogoutUserResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectPostStoreOrder ¶
func (s *TestHandler) ExpectPostStoreOrder( req PostStoreOrderRequestObject, resp PostStoreOrderResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectUpdatePet ¶
func (s *TestHandler) ExpectUpdatePet( req UpdatePetRequestObject, resp UpdatePetResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectUpdatePetWithForm ¶
func (s *TestHandler) ExpectUpdatePetWithForm( req UpdatePetWithFormRequestObject, resp UpdatePetWithFormResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectUpdateUser ¶
func (s *TestHandler) ExpectUpdateUser( req UpdateUserRequestObject, resp UpdateUserResponseObject, opts ...ExpectOption, )
func (*TestHandler) ExpectUploadFile ¶
func (s *TestHandler) ExpectUploadFile( req UploadFileRequestObject, resp UploadFileResponseObject, opts ...ExpectOption, )
func (*TestHandler) ServeHTTP ¶
func (s *TestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdatePet200ApplicationxmlResponse ¶
func (UpdatePet200ApplicationxmlResponse) VisitUpdatePetResponse ¶
func (response UpdatePet200ApplicationxmlResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet200JSONResponse ¶
type UpdatePet200JSONResponse Pet
func (UpdatePet200JSONResponse) VisitUpdatePetResponse ¶
func (response UpdatePet200JSONResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet400ApplicationxmlResponse ¶
type UpdatePet400ApplicationxmlResponse struct{ ErrorApplicationxmlResponse }
func (UpdatePet400ApplicationxmlResponse) VisitUpdatePetResponse ¶
func (response UpdatePet400ApplicationxmlResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet400JSONResponse ¶
type UpdatePet400JSONResponse struct{ ErrorJSONResponse }
func (UpdatePet400JSONResponse) VisitUpdatePetResponse ¶
func (response UpdatePet400JSONResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet404ApplicationxmlResponse ¶
func (UpdatePet404ApplicationxmlResponse) VisitUpdatePetResponse ¶
func (response UpdatePet404ApplicationxmlResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet404JSONResponse ¶
type UpdatePet404JSONResponse Error
func (UpdatePet404JSONResponse) VisitUpdatePetResponse ¶
func (response UpdatePet404JSONResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet422ApplicationxmlResponse ¶
func (UpdatePet422ApplicationxmlResponse) VisitUpdatePetResponse ¶
func (response UpdatePet422ApplicationxmlResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePet422JSONResponse ¶
type UpdatePet422JSONResponse Error
func (UpdatePet422JSONResponse) VisitUpdatePetResponse ¶
func (response UpdatePet422JSONResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdatePetFormdataRequestBody ¶
type UpdatePetFormdataRequestBody = Pet
UpdatePetFormdataRequestBody defines body for UpdatePet for application/x-www-form-urlencoded ContentType.
type UpdatePetJSONRequestBody ¶
type UpdatePetJSONRequestBody = Pet
UpdatePetJSONRequestBody defines body for UpdatePet for application/json ContentType.
type UpdatePetRequestObject ¶
type UpdatePetRequestObject struct {
JSONBody *UpdatePetJSONRequestBody
FormdataBody *UpdatePetFormdataRequestBody
Body io.Reader
}
type UpdatePetResponseObject ¶
type UpdatePetResponseObject interface {
VisitUpdatePetResponse(w http.ResponseWriter) error
}
type UpdatePetWithForm200ApplicationxmlResponse ¶
func (UpdatePetWithForm200ApplicationxmlResponse) VisitUpdatePetWithFormResponse ¶
func (response UpdatePetWithForm200ApplicationxmlResponse) VisitUpdatePetWithFormResponse(w http.ResponseWriter) error
type UpdatePetWithForm200JSONResponse ¶
type UpdatePetWithForm200JSONResponse Pet
func (UpdatePetWithForm200JSONResponse) VisitUpdatePetWithFormResponse ¶
func (response UpdatePetWithForm200JSONResponse) VisitUpdatePetWithFormResponse(w http.ResponseWriter) error
type UpdatePetWithForm400Response ¶
type UpdatePetWithForm400Response struct {
}
func (UpdatePetWithForm400Response) VisitUpdatePetWithFormResponse ¶
func (response UpdatePetWithForm400Response) VisitUpdatePetWithFormResponse(w http.ResponseWriter) error
type UpdatePetWithFormParams ¶
type UpdatePetWithFormParams struct {
// Name Name of pet that needs to be updated
Name *string `form:"name,omitempty" json:"name,omitempty"`
// Status Status of pet that needs to be updated
Status *string `form:"status,omitempty" json:"status,omitempty"`
}
UpdatePetWithFormParams defines parameters for UpdatePetWithForm.
type UpdatePetWithFormRequestObject ¶
type UpdatePetWithFormRequestObject struct {
PetId int64 `json:"petId"`
Params UpdatePetWithFormParams
}
type UpdatePetWithFormResponseObject ¶
type UpdatePetWithFormResponseObject interface {
VisitUpdatePetWithFormResponse(w http.ResponseWriter) error
}
type UpdatePetWithFormdefaultResponse ¶
type UpdatePetWithFormdefaultResponse struct {
StatusCode int
}
func (UpdatePetWithFormdefaultResponse) VisitUpdatePetWithFormResponse ¶
func (response UpdatePetWithFormdefaultResponse) VisitUpdatePetWithFormResponse(w http.ResponseWriter) error
type UpdatePetdefaultResponse ¶
type UpdatePetdefaultResponse struct {
StatusCode int
}
func (UpdatePetdefaultResponse) VisitUpdatePetResponse ¶
func (response UpdatePetdefaultResponse) VisitUpdatePetResponse(w http.ResponseWriter) error
type UpdateUser200Response ¶
type UpdateUser200Response struct {
}
func (UpdateUser200Response) VisitUpdateUserResponse ¶
func (response UpdateUser200Response) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser400Response ¶
type UpdateUser400Response struct {
}
func (UpdateUser400Response) VisitUpdateUserResponse ¶
func (response UpdateUser400Response) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUser404Response ¶
type UpdateUser404Response struct {
}
func (UpdateUser404Response) VisitUpdateUserResponse ¶
func (response UpdateUser404Response) VisitUpdateUserResponse(w http.ResponseWriter) error
type UpdateUserFormdataRequestBody ¶
type UpdateUserFormdataRequestBody = externalRef0.User
UpdateUserFormdataRequestBody defines body for UpdateUser for application/x-www-form-urlencoded ContentType.
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody = externalRef0.User
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserRequestObject ¶
type UpdateUserRequestObject struct {
Username string `json:"username"`
JSONBody *UpdateUserJSONRequestBody
FormdataBody *UpdateUserFormdataRequestBody
Body io.Reader
}
type UpdateUserResponseObject ¶
type UpdateUserResponseObject interface {
VisitUpdateUserResponse(w http.ResponseWriter) error
}
type UpdateUserdefaultResponse ¶
type UpdateUserdefaultResponse struct {
StatusCode int
}
func (UpdateUserdefaultResponse) VisitUpdateUserResponse ¶
func (response UpdateUserdefaultResponse) VisitUpdateUserResponse(w http.ResponseWriter) error
type UploadFile200JSONResponse ¶
type UploadFile200JSONResponse ApiResponse
func (UploadFile200JSONResponse) VisitUploadFileResponse ¶
func (response UploadFile200JSONResponse) VisitUploadFileResponse(w http.ResponseWriter) error
type UploadFile400Response ¶
type UploadFile400Response struct {
}
func (UploadFile400Response) VisitUploadFileResponse ¶
func (response UploadFile400Response) VisitUploadFileResponse(w http.ResponseWriter) error
type UploadFile404Response ¶
type UploadFile404Response struct {
}
func (UploadFile404Response) VisitUploadFileResponse ¶
func (response UploadFile404Response) VisitUploadFileResponse(w http.ResponseWriter) error
type UploadFileParams ¶
type UploadFileParams struct {
// AdditionalMetadata Additional Metadata
AdditionalMetadata *string `form:"additionalMetadata,omitempty" json:"additionalMetadata,omitempty"`
}
UploadFileParams defines parameters for UploadFile.
type UploadFileRequestObject ¶
type UploadFileRequestObject struct {
PetId int64 `json:"petId"`
Params UploadFileParams
Body io.Reader
}
type UploadFileResponseObject ¶
type UploadFileResponseObject interface {
VisitUploadFileResponse(w http.ResponseWriter) error
}
type UploadFiledefaultResponse ¶
type UploadFiledefaultResponse struct {
StatusCode int
}
func (UploadFiledefaultResponse) VisitUploadFileResponse ¶
func (response UploadFiledefaultResponse) VisitUploadFileResponse(w http.ResponseWriter) error