Documentation
¶
Index ¶
- func BodyHandler(srv *Service, handlers ...types.ParameterOptionHandler) types.RouteOptionHanlder
- func ParameterHandler(srv *Service, handlers ...types.ParameterOptionHandler) types.RouteOptionHanlder
- func RouteDescriptionHandler(file *ast.File) types.RouteOptionHanlder
- type IParameter
- type Info
- type Parameter
- type Parser
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyHandler ¶
func BodyHandler(srv *Service, handlers ...types.ParameterOptionHandler) types.RouteOptionHanlder
func ParameterHandler ¶
func ParameterHandler(srv *Service, handlers ...types.ParameterOptionHandler) types.RouteOptionHanlder
func RouteDescriptionHandler ¶
func RouteDescriptionHandler(file *ast.File) types.RouteOptionHanlder
Types ¶
type IParameter ¶
type Parameter ¶
type Parameter struct {
In string `json:"in"`
Name string `json:"name"`
Required bool `json:"required"`
Minimum int `json:"minimum,omitempty"`
Description string `json:"description,omitempty"`
RequestBody *types.Reference `json:"requestBody,omitempty"`
Schema types.Type `json:"schema,omitempty"`
}
func NewParameter ¶
func NewParameter(paramType string, t string, args []ast.Expr) Parameter {
type Parser ¶
type Parser interface {
FindModel(ast.SelectorExpr) types.Type
UnwrapImportedType(types.ImportedType) (types.Type, error)
}
Click to show internal directories.
Click to hide internal directories.