Documentation ¶
Index ¶
- type Enum
- type EnumItem
- type Option
- func Deprecated() Option
- func Desc(desc string) Option
- func Enums(enums Enum) Option
- func Exclude() Option
- func OperationID(ID string) Option
- func Req(request Request) Option
- func Resp(response Response) Option
- func Security(securities ...security.Security) Option
- func Summary(summary string) Option
- func Tags(tags ...string) Option
- type Request
- 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 Deprecated ¶
func Deprecated() Option
func OperationID ¶
type Response ¶
type Response map[string]ResponseItem
type ResponseItem ¶
type Router ¶
type Router struct { // middlewares Handlers []gin.HandlerFunc Path string Method string Summary string Description string OperationID string Deprecated bool Exclude bool RequestContentType string ResponseContentType string Tags []string // handler API gin.HandlerFunc Model any Securities []security.Security Response Response Request Request Enum Enum }
func NewRouterX ¶
func NewRouterX(f gin.HandlerFunc, options ...Option) *Router
func (*Router) GetHandlers ¶
func (router *Router) GetHandlers() []gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.