Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIs = map[string]*API{}
APIs the loaded RESTful APIs
View Source
var Guards = map[string]gin.HandlerFunc{}
Guards The Guard list
Functions ¶
Types ¶
type Option ¶
type Option struct {
Mode string `json:"mode,omitempty"` // the server mode production / development
Root string `json:"root,omitempty"` // the root route path of the RESTFul API server
}
Option the server option
type Out ¶
type Out struct {
Status int `json:"status"`
Type string `json:"type,omitempty"`
Headers map[string]string `json:"headers,omitempty"`
}
Out The RESTFul API output
type Path ¶
type Path struct {
Label string `json:"label,omitempty"`
Description string `json:"description,omitempty"`
Path string `json:"path"`
Method string `json:"method"`
Process string `json:"process"`
Guard string `json:"guard,omitempty"`
In []interface{} `json:"in,omitempty"`
Out Out `json:"out,omitempty"`
}
Path The RESTFul API Route path
Click to show internal directories.
Click to hide internal directories.