Documentation ¶
Index ¶
- func BindREST(m *mux.Router, rests map[string]*REST) error
- func BindRoutes(m *mux.Router) error
- func LogUserAction(req *http.Request, text string) error
- func SendEmptyJSON(rw http.ResponseWriter, code int)
- func SendFailure(rw http.ResponseWriter, format string, args ...interface{})
- func SendJSON(rw http.ResponseWriter, code int, data interface{})
- func StartAlarmStream() error
- func StartStrokeStream() error
- type REST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindREST ¶
BindREST makes a lookup in the database to configure the REST endpoint and binds the handler to the given route
func BindRoutes ¶
BindRoutes binds all the API endpoints to the exposed router.
func SendEmptyJSON ¶
func SendEmptyJSON(rw http.ResponseWriter, code int)
SendEmptyJSON sends an empty JSON document to the client.
func SendFailure ¶
func SendFailure(rw http.ResponseWriter, format string, args ...interface{})
SendFailure sends a failure message to the client.
func SendJSON ¶
func SendJSON(rw http.ResponseWriter, code int, data interface{})
SendJSON sends JSON encoded data to client.
func StartAlarmStream ¶
func StartAlarmStream() error
StartAlarmStream starts the server side streaming service for alarms
func StartStrokeStream ¶
func StartStrokeStream() error
StartStrokeStream starts the server side streaming service for strokes
Types ¶
Click to show internal directories.
Click to hide internal directories.