Documentation ¶
Index ¶
Constants ¶
View Source
const ANNO_MIDDLEWARE = "middleware"
View Source
const ANNO_ROUTER = "router"
View Source
const ANNO_ROUTERGROUP = "routergroup"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Middleware ¶
type Middleware struct {
Name string `json:"name"`
}
func ParseMiddleware ¶
func ParseMiddleware(docLine string) (Middleware, error)
ParseMiddleware get Middleware from comments
type Router ¶
type Router struct { Path string `json:"path"` Method string `json:"method"` Middleware string `json:"middleware"` Namespace string `json:"namespace"` Context string `json:"context"` }
func ParseRouter ¶
ParseRouter get router from comments
type RouterGroup ¶
type RouterGroup struct { Prefix string `json:"prefix"` Middleware string `json:"middleware"` Namespace string `json:"namespace"` }
func ParseRouterGroup ¶
func ParseRouterGroup(docLine string) (RouterGroup, error)
ParseRouterGroup get routergroup from comments
Click to show internal directories.
Click to hide internal directories.