Documentation
¶
Overview ¶
Package server implements the API server.
Package server implements the API server.
Index ¶
- func Run(cmd *cobra.Command, _ []string)
- type API
- func (a *API) AddPet(_ context.Context, req api.AddPetRequestObject) (api.AddPetResponseObject, error)
- func (a *API) DeletePet(_ context.Context, pet api.DeletePetRequestObject) (api.DeletePetResponseObject, error)
- func (a *API) FindPetByID(_ context.Context, pet api.FindPetByIDRequestObject) (api.FindPetByIDResponseObject, error)
- func (a *API) FindPets(_ context.Context, params api.FindPetsRequestObject) (api.FindPetsResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API implements the api server.
func (*API) AddPet ¶
func (a *API) AddPet(_ context.Context, req api.AddPetRequestObject) (api.AddPetResponseObject, error)
AddPet adds a pet to the pet store.
func (*API) DeletePet ¶
func (a *API) DeletePet(_ context.Context, pet api.DeletePetRequestObject) (api.DeletePetResponseObject, error)
DeletePet deletes a pet in the pet store.
func (*API) FindPetByID ¶
func (a *API) FindPetByID(_ context.Context, pet api.FindPetByIDRequestObject) (api.FindPetByIDResponseObject, error)
FindPetByID finds a pet in the pet store by id.
func (*API) FindPets ¶
func (a *API) FindPets(_ context.Context, params api.FindPetsRequestObject) (api.FindPetsResponseObject, error)
FindPets finds a pet in the pet store by id.
Click to show internal directories.
Click to hide internal directories.