Documentation
¶
Overview ¶
Package server implements the API interface, api.StrictServerInterface, which is auto-generated from the OpenAPI 3 spec, and describes the simple, canonical 'pet store' example.
Index ¶
- type Server
- func (s *Server) AddPet(ctx context.Context, req api.AddPetRequestObject) (api.AddPetResponseObject, error)
- func (s *Server) DeletePet(ctx context.Context, req api.DeletePetRequestObject) (api.DeletePetResponseObject, error)
- func (s *Server) FindPetByID(ctx context.Context, req api.FindPetByIDRequestObject) (api.FindPetByIDResponseObject, error)
- func (s *Server) FindPets(ctx context.Context, req api.FindPetsRequestObject) (api.FindPetsResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddPet ¶
func (s *Server) AddPet(ctx context.Context, req api.AddPetRequestObject) (api.AddPetResponseObject, error)
Creates a new pet (POST /pets)
func (*Server) DeletePet ¶
func (s *Server) DeletePet(ctx context.Context, req api.DeletePetRequestObject) (api.DeletePetResponseObject, error)
Deletes a pet by ID (DELETE /pets/{id})
func (*Server) FindPetByID ¶
func (s *Server) FindPetByID(ctx context.Context, req api.FindPetByIDRequestObject) (api.FindPetByIDResponseObject, error)
Returns a pet by ID (GET /pets/{id})
func (*Server) FindPets ¶
func (s *Server) FindPets(ctx context.Context, req api.FindPetsRequestObject) (api.FindPetsResponseObject, error)
Returns all pets (GET /pets)
Click to show internal directories.
Click to hide internal directories.