Versions in this module Expand all Collapse all v1 v1.9.3 Apr 16, 2022 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router *gin.Engine, si ServerInterface) *gin.Engine + func RegisterHandlersWithOptions(router *gin.Engine, si ServerInterface, options GinServerOptions) *gin.Engine + type AddPetJSONBody NewPet + type AddPetJSONRequestBody AddPetJSONBody + type Error struct + Code int32 + Message string + type FindPetsParams struct + Limit *int32 + Tags *[]string + type GinServerOptions struct + BaseURL string + Middlewares []MiddlewareFunc + type MiddlewareFunc func(c *gin.Context) + 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(c *gin.Context) + func (p *PetStore) DeletePet(c *gin.Context, id int64) + func (p *PetStore) FindPetByID(c *gin.Context, petId int64) + func (p *PetStore) FindPets(c *gin.Context, params FindPetsParams) + type ServerInterface interface + AddPet func(c *gin.Context) + DeletePet func(c *gin.Context, id int64) + FindPetByID func(c *gin.Context, id int64) + FindPets func(c *gin.Context, params FindPetsParams) + type ServerInterfaceWrapper struct + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) AddPet(c *gin.Context) + func (siw *ServerInterfaceWrapper) DeletePet(c *gin.Context) + func (siw *ServerInterfaceWrapper) FindPetByID(c *gin.Context) + func (siw *ServerInterfaceWrapper) FindPets(c *gin.Context)