Documentation ¶
Index ¶
- type Option
- func ContentType(contentType string) Option
- func Deprecated() Option
- func Description(description string) Option
- func Exclude() Option
- func Handlers(handlers ...gin.HandlerFunc) Option
- func OperationID(ID string) Option
- func Responses(response Response) Option
- func Security(securities ...security.ISecurity) Option
- func Summary(summary string) Option
- func Tags(tags ...string) Option
- type Response
- type ResponseItem
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(router *Router)
func Description ¶
func Handlers ¶
func Handlers(handlers ...gin.HandlerFunc) Option
func OperationID ¶
type Response ¶
type Response map[string]ResponseItem
type ResponseItem ¶
type Router ¶
type Router struct { Handlers *list.List Path string Method string Summary string Description string Deprecated bool ContentType string Tags []string API interface{} OperationID string Exclude bool Securities []security.ISecurity Response Response }
func (*Router) GetHandlers ¶
func (router *Router) GetHandlers() []gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.