Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RepoPullAction action = "pull" RepoPushAction action = "push" SystemInfoAction action = "sysinfo" )
Functions ¶
This section is empty.
Types ¶
type Route ¶ added in v0.5.0
type Route struct {
Method string
Path string
Handler gin.HandlerFunc
Action action
}
Route represents an application route
type Router ¶
type Router struct {
*gin.Engine
Logger *cm_logger.Logger
Routes []*Route
TlsCert string
TlsKey string
ContextPath string
BasicAuthHeader string
AnonymousGet bool
Depth int
}
Router handles all incoming HTTP requests
func NewRouter ¶
func NewRouter(options RouterOptions) *Router
NewRouter creates a new Router instance
Click to show internal directories.
Click to hide internal directories.