hw/hw.go

20 lines
359 B
Go
Raw Normal View History

2018-03-08 14:08:37 -08:00
package hw
import "net/http"
2018-03-08 16:28:56 -08:00
// Version is version.
var Version = "unset"
2018-03-08 16:28:56 -08:00
// Git exists so we can override it
2018-03-08 16:16:14 -08:00
var Git = "unset"
2018-03-08 14:48:25 -08:00
2018-03-08 14:08:37 -08:00
// OK simply return 200
func OK(w http.ResponseWriter, req *http.Request) {}
2018-03-08 16:15:44 -08:00
// V houses version information
type V struct {
Hostname string `json:"hostname"`
V string `json:"version"`
2018-03-08 16:16:14 -08:00
G string `json:"git"`
2018-03-08 16:15:44 -08:00
}