Documentation ¶
Index ¶
- type Builder
- func (b *Builder) AddSecurityRequirement(req openapi3.SecurityRequirement)
- func (b *Builder) AddSecurityScheme(name string, s *openapi3.SecurityScheme)
- func (b *Builder) AddServer(server *openapi3.Server)
- func (b *Builder) AddTag(tag *openapi3.Tag)
- func (b *Builder) ClearCache()
- func (b *Builder) Delete(r chi.Router, pattern string, reqObject interface{}) error
- func (b *Builder) GenerateJson(ctx context.Context, callbacksObject shared.ChipiCallbacks) ([]byte, error)
- func (b *Builder) GenerateSwagger(ctx context.Context, callbacksObject shared.ChipiCallbacks) (*openapi3.T, error)
- func (b *Builder) Get(r chi.Router, pattern string, reqObject interface{}) error
- func (b *Builder) Method(r chi.Router, pattern string, method string, reqObject interface{}) error
- func (b *Builder) Patch(r chi.Router, pattern string, reqObject interface{}) error
- func (b *Builder) Post(r chi.Router, pattern string, reqObject interface{}) error
- func (b *Builder) Put(r chi.Router, pattern string, reqObject interface{}) error
- func (b *Builder) ServeSchema(w http.ResponseWriter, r *http.Request)
- type CallbackFunc
- type Method
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) AddSecurityRequirement ¶
func (b *Builder) AddSecurityRequirement(req openapi3.SecurityRequirement)
func (*Builder) AddSecurityScheme ¶
func (b *Builder) AddSecurityScheme(name string, s *openapi3.SecurityScheme)
func (*Builder) ClearCache ¶
func (b *Builder) ClearCache()
func (*Builder) GenerateJson ¶
func (*Builder) GenerateSwagger ¶
func (*Builder) ServeSchema ¶
func (b *Builder) ServeSchema(w http.ResponseWriter, r *http.Request)
type CallbackFunc ¶
type CallbackFunc func(http.ResponseWriter, interface{})
Click to show internal directories.
Click to hide internal directories.