Versions in this module Expand all Collapse all v1 v1.12.5 Apr 19, 2023 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router gin.IRouter, si ServerInterface) + func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions) + type AddPetJSONRequestBody = NewPet + type Error struct + Code int32 + Message string + type FindPetsParams struct + Limit *int32 + Tags *[]string + type GinServerOptions struct + BaseURL string + ErrorHandler func(*gin.Context, error, int) + Middlewares []MiddlewareFunc + type MiddlewareFunc func(c *gin.Context) + 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(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 + ErrorHandler func(*gin.Context, error, int) + 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)