Documentation ¶
Index ¶
- func GetBindAddress() string
- func GetPagination(from, size, total int, url string, param map[string]interface{}) string
- func HandleUI(pattern string, handler http.Handler)
- func HandleUIFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func HandleUIMethod(method api.Method, pattern string, ...)
- func HandleWebSocketCommand(command string, usage string, ...)
- func StartUI(cfg *UIConfig)
- type AuthConfig
- type UIConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBindAddress ¶
func GetBindAddress() string
func GetPagination ¶
GetPagination return a pagination html code snippet
func HandleUIFunc ¶
func HandleUIFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
HandleUIFunc register ui request handler
func HandleUIMethod ¶
func HandleUIMethod(method api.Method, pattern string, handler func(w http.ResponseWriter, req *http.Request, ps httprouter.Params))
HandleUIMethod register ui request handler
func HandleWebSocketCommand ¶
func HandleWebSocketCommand(command string, usage string, handler func(c *websocket.WebsocketConnection, array []string))
HandleWebSocketCommand register websocket command handler
Types ¶
type AuthConfig ¶
type UIConfig ¶
type UIConfig struct { Enabled bool `config:"enabled"` AuthConfig AuthConfig `config:"auth"` TLSConfig config.TLSConfig `config:"tls"` NetworkConfig config.NetworkConfig `config:"network"` }
func GetUIConfig ¶
func GetUIConfig() UIConfig
Click to show internal directories.
Click to hide internal directories.