builder

package
v0.0.0-...-f4e732c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 New

func New(r *chi.Mux, infos *openapi3.Info) (*Builder, error)

func (*Builder) AddSecurityRequirement

func (b *Builder) AddSecurityRequirement(req openapi3.SecurityRequirement)

func (*Builder) AddSecurityScheme

func (b *Builder) AddSecurityScheme(name string, s *openapi3.SecurityScheme)

func (*Builder) AddServer

func (b *Builder) AddServer(server *openapi3.Server)

func (*Builder) AddTag

func (b *Builder) AddTag(tag *openapi3.Tag)

func (*Builder) ClearCache

func (b *Builder) ClearCache()

func (*Builder) Delete

func (b *Builder) Delete(r chi.Router, pattern string, reqObject interface{}) error

func (*Builder) GenerateJson

func (b *Builder) GenerateJson(ctx context.Context, callbacksObject shared.ChipiCallbacks) ([]byte, error)

func (*Builder) GenerateSwagger

func (b *Builder) GenerateSwagger(ctx context.Context, callbacksObject shared.ChipiCallbacks) (*openapi3.T, error)

func (*Builder) Get

func (b *Builder) Get(r chi.Router, pattern string, reqObject interface{}) error

func (*Builder) Method

func (b *Builder) Method(r chi.Router, pattern string, method string, reqObject interface{}) error

func (*Builder) Patch

func (b *Builder) Patch(r chi.Router, pattern string, reqObject interface{}) error

func (*Builder) Post

func (b *Builder) Post(r chi.Router, pattern string, reqObject interface{}) error

func (*Builder) Put

func (b *Builder) Put(r chi.Router, pattern string, reqObject interface{}) error

func (*Builder) ServeSchema

func (b *Builder) ServeSchema(w http.ResponseWriter, r *http.Request)

type CallbackFunc

type CallbackFunc func(http.ResponseWriter, interface{})

type Method

type Method struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL