Documentation ¶
Index ¶
- Variables
- func ShowUI(rw http.ResponseWriter, req *http.Request)
- type Hub
- type Service
- func (service Service) GetAllConfig(rw http.ResponseWriter, req *http.Request)
- func (service Service) GetConfig(rw http.ResponseWriter, req *http.Request)
- func (service Service) RemoveConfig(rw http.ResponseWriter, req *http.Request)
- func (service Service) SetConfig(rw http.ResponseWriter, req *http.Request)
- type SystemResponse
- type WsHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WsHub is the websocket hub WsHub = NewHub() )
Functions ¶
Types ¶
type Hub ¶
type Hub struct { // Inbound messages from the connections. Broadcast chan []byte // contains filtered or unexported fields }
Hub is a connection hub for websockets
type Service ¶
Service encapsulates API service operations
func (Service) GetAllConfig ¶
func (service Service) GetAllConfig(rw http.ResponseWriter, req *http.Request)
GetAllConfig gets all config items
func (Service) GetConfig ¶
func (service Service) GetConfig(rw http.ResponseWriter, req *http.Request)
GetConfig gets a specfic config item based on config item name
func (Service) RemoveConfig ¶
func (service Service) RemoveConfig(rw http.ResponseWriter, req *http.Request)
RemoveConfig removes a specific config item
type SystemResponse ¶
type SystemResponse struct { Message string `json:"message"` Data interface{} `json:"data"` }
SystemResponse is a response for a system request
Click to show internal directories.
Click to hide internal directories.