Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
Count uint64 `json:"count"`
}
Counter represents an access counter.
type Dependency ¶
Dependency represents a service dependency.
type Health ¶
type Health struct { Name string `json:"name"` Version string `json:"version"` Dependencies []Dependency `json:"dependencies"` }
Health represents the health status of the service and its dependencies.
func NewHealth ¶
func NewHealth(name, version string, dependencies []Dependency) *Health
NewHealth creates a new Health instance.
Click to show internal directories.
Click to hide internal directories.