Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Name string `json:"name"`
Description string `json:"description"`
Successful bool `json:"successful"`
// contains filtered or unexported fields
}
Check - to be performed when status info is requested.
type ServiceStatus ¶
type ServiceStatus struct {
// contains filtered or unexported fields
}
ServiceStatus - Provides status for service in TBP format.
func NewServiceStatus ¶
func NewServiceStatus(name string, version string) ServiceStatus
NewServiceStatus - create a ServiceStatus
func (*ServiceStatus) AddCheck ¶
func (ss *ServiceStatus) AddCheck(name string, description string, checkFunc func() bool)
AddCheck - register a check to be performed when status info is requested.
func (ServiceStatus) Status ¶
func (ss ServiceStatus) Status() string
Status - returns a JSON status string