Documentation ¶
Index ¶
- Constants
- func Format(t reflect.Type) string
- func GetContentType[T any]() (string, bool)
- func Param(t reflect.Type, name, in string) (*spec.Parameter, error)
- func RegisterContentType[T any](contentType string)
- func RegisterFormat[T any](format string)
- func RegisterResponse[T any](response *spec.Response)
- func RegisterSchema[T any](schema *spec.Schema)
- func Response(t reflect.Type) (*spec.Response, error)
- func Schema(t reflect.Type, requireTag bool) (*spec.Schema, error)
- func SwaggerUI() http.Handler
- func Type(t reflect.Type) string
- type APIDocer
- type OperationMiddleware
- type Operationer
- type Pathser
- type SwaggerOption
Constants ¶
View Source
const DefaultSecurityDefinitionName = "Bearer"
Variables ¶
This section is empty.
Functions ¶
func GetContentType ¶ added in v0.16.0
func RegisterContentType ¶ added in v0.16.0
func RegisterFormat ¶
func RegisterResponse ¶ added in v0.16.0
func RegisterSchema ¶ added in v0.16.0
Types ¶
type OperationMiddleware ¶
type Operationer ¶
type SwaggerOption ¶
func AddDefaultSecurityDefinition ¶ added in v0.16.0
func AddDefaultSecurityDefinition() SwaggerOption
func AddSecurityDefinition ¶ added in v0.16.0
func AddSecurityDefinition(name string, securityScheme *spec.SecuritySchemeProps) SwaggerOption
func BasePath ¶
func BasePath(basePath string) SwaggerOption
func Info ¶
func Info(info spec.InfoProps) SwaggerOption
Click to show internal directories.
Click to hide internal directories.