Versions in this module Expand all Collapse all v1 v1.6.0 Feb 15, 2021 Changes in this version + func GetSwagger() (*openapi3.Swagger, error) + func Handler(si ServerInterface) http.Handler + func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler + func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler + func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler + type AddPetJSONBody NewPet + type AddPetJSONRequestBody AddPetJSONBody + type ChiServerOptions struct + BaseRouter chi.Router + BaseURL string + Middlewares []MiddlewareFunc + type Error struct + Code int32 + Message string + type FindPetsParams struct + Limit *int32 + Tags *[]string + type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc + type NewPet struct + Name string + Tag *string + type Pet struct + Id int64 + type PetStore struct + Lock sync.Mutex + NextId int64 + Pets map[int64]Pet + func NewPetStore() *PetStore + func (p *PetStore) AddPet(w http.ResponseWriter, r *http.Request) + func (p *PetStore) DeletePet(w http.ResponseWriter, r *http.Request, id int64) + func (p *PetStore) FindPetById(w http.ResponseWriter, r *http.Request, id int64) + func (p *PetStore) FindPets(w http.ResponseWriter, r *http.Request, params FindPetsParams) + type ServerInterface interface + AddPet func(w http.ResponseWriter, r *http.Request) + DeletePet func(w http.ResponseWriter, r *http.Request, id int64) + FindPetById func(w http.ResponseWriter, r *http.Request, id int64) + FindPets func(w http.ResponseWriter, r *http.Request, params FindPetsParams) + type ServerInterfaceWrapper struct + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) AddPet(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) DeletePet(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) FindPetById(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) FindPets(w http.ResponseWriter, r *http.Request)