Versions in this module Expand all Collapse all v1 v1.1000.1 Oct 29, 2022 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func Handler(si ServerInterface) http.Handler + func HandlerFromMux(si ServerInterface, r *mux.Router) http.Handler + func HandlerFromMuxWithBaseURL(si ServerInterface, r *mux.Router, baseURL string) http.Handler + func HandlerWithOptions(si ServerInterface, options GorillaServerOptions) http.Handler + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + type AddPetJSONRequestBody = NewPet + type Error struct + Code int32 + Message string + type FindPetsParams struct + Limit *int32 + Tags *[]string + type GorillaServerOptions struct + BaseRouter *mux.Router + BaseURL string + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Middlewares []MiddlewareFunc + type InvalidParamFormatError struct + Err error + ParamName string + func (e *InvalidParamFormatError) Error() string + func (e *InvalidParamFormatError) Unwrap() error + type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc + type NewPet struct + Name string + Tag *string + type Pet struct + Id int64 + Name string + Tag *string + 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 RequiredHeaderError struct + Err error + ParamName string + func (e *RequiredHeaderError) Error() string + func (e *RequiredHeaderError) Unwrap() error + type RequiredParamError struct + ParamName string + func (e *RequiredParamError) Error() string + 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 + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + 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) + type TooManyValuesForParamError struct + Count int + ParamName string + func (e *TooManyValuesForParamError) Error() string + type UnescapedCookieParamError struct + Err error + ParamName string + func (e *UnescapedCookieParamError) Error() string + func (e *UnescapedCookieParamError) Unwrap() error + type UnmarshallingParamError struct + Err error + ParamName string + func (e *UnmarshallingParamError) Error() string + func (e *UnmarshallingParamError) Unwrap() error