1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

20 lines
326 B
Go
Raw Normal View History

2017-05-19 11:32:22 +02:00
package main
2017-05-19 11:57:25 +02:00
import ()
2017-05-19 11:32:22 +02:00
2017-05-19 11:57:25 +02:00
var version = "unknown"
2017-05-19 11:32:22 +02:00
// Gather application status information
type AppStatus struct {
Version string `json:"version"`
}
// Get application status, perform health checks
// on backends.
func NewAppStatus() (*AppStatus, error) {
status := &AppStatus{
2017-05-19 11:57:25 +02:00
Version: version,
2017-05-19 11:32:22 +02:00
}
return status, nil
}