rest

package
v0.0.0-...-1fd455f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Config defines a configuration for waking/sleeping hosts
	Config domain.Config
)

Functions

func Ping

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL