Documentation
¶
Index ¶
- Constants
- Variables
- type HttpRequestResponse
- type Option
- type Swagger
- func (s *Swagger) AddComponents(components ...interface{})
- func (s *Swagger) Bind(name string, request interface{}, responses map[int]interface{})
- func (s *Swagger) ForbiddenResponse() *openapi3.ResponseRef
- func (s *Swagger) Generate(app *fiber.App)
- func (s *Swagger) NoContentResponse() *openapi3.ResponseRef
- func (s *Swagger) WriteToYaml() error
Constants ¶
View Source
const ( QUERY = "query" JSON = "json" FORM = "form" URI = "uri" HEADER = "header" COOKIE = "cookie" DEFAULT = "default" VALIDATE = "validate" DESCRIPTION = "description" EMBED = "embed" EXAMPLE = "example" EXCLUDE = "exclude" TITLE = "title" ENUM = "enum" )
Variables ¶
View Source
var ( SUCCESS = "success" FAILED = "failed" NOTFOUND = "not found" FORBIDDEN = "forbidden" NOCONTENT = "no content" )
Functions ¶
This section is empty.
Types ¶
type HttpRequestResponse ¶
type Swagger ¶
type Swagger struct { Title string Description string Version string License *openapi3.License Contact *openapi3.Contact Components []interface{} OpenAPI *openapi3.T Schemas map[string]*openapi3.SchemaRef Paths map[string]map[string]*router.Router PathResponseTypes map[string]map[int]interface{} OpenAPIYamlFile string // contains filtered or unexported fields }
func NewSwagger ¶
func (*Swagger) AddComponents ¶
func (s *Swagger) AddComponents(components ...interface{})
func (*Swagger) ForbiddenResponse ¶
func (s *Swagger) ForbiddenResponse() *openapi3.ResponseRef
func (*Swagger) NoContentResponse ¶
func (s *Swagger) NoContentResponse() *openapi3.ResponseRef
func (*Swagger) WriteToYaml ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.