Documentation ¶
Index ¶
- Variables
- func Ping(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func Sleep(w http.ResponseWriter, req *http.Request, params httprouter.Params)
- func Version(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
- func Wake(w http.ResponseWriter, req *http.Request, params httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Config defines a configuration for waking/sleeping hosts Config domain.Config )
Functions ¶
func Ping ¶
func Ping(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
Ping is a healthcheck endpoint and returns a simple pong
func Sleep ¶
func Sleep(w http.ResponseWriter, req *http.Request, params httprouter.Params)
Sleep shuts down a configured PC
func Version ¶
func Version(w http.ResponseWriter, req *http.Request, _ httprouter.Params)
Version is a version endpoint for the api
func Wake ¶
func Wake(w http.ResponseWriter, req *http.Request, params httprouter.Params)
Wake handles the main api endpoint for alarm clock and wakes hosts up
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.