Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentStatus ¶
type ComponentStatus interface { SetStatus(statusType StatusType, message string) // getters Status() StatusType Message() string LastUpdate() time.Time }
type Report ¶
type Report struct { Version string `json:"version"` Status StatusType `json:"status"` Components map[string]componentStatus `json:"components"` }
type StatusType ¶
type StatusType int
const ( ERROR StatusType = iota WARN OK )
func (StatusType) MarshalJSON ¶
func (s StatusType) MarshalJSON() ([]byte, error)
func (StatusType) String ¶
func (s StatusType) String() string
func (*StatusType) UnmarshalJSON ¶
func (s *StatusType) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.