Documentation
¶
Index ¶
- Variables
- func GenerateBootstrapDashboardHTML(title string, response DashboardResponse) (string, error)
- type Checker
- type DBChecker
- type Dashboard
- type DashboardResponse
- type DiskChecker
- type FuncChecker
- type HTTPChecker
- type Health
- type Response
- type Result
- type Status
- type Website
- type WebsiteHealth
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateBootstrapDashboardHTML ¶ added in v1.0.1
func GenerateBootstrapDashboardHTML(title string, response DashboardResponse) (string, error)
Types ¶
type Dashboard ¶ added in v1.0.1
type Dashboard struct {
// contains filtered or unexported fields
}
func NewDashboard ¶ added in v1.0.1
func (*Dashboard) BootstrapHandler ¶ added in v1.0.1
func (d *Dashboard) BootstrapHandler(title string) gin.HandlerFunc
func (*Dashboard) Handler ¶ added in v1.0.1
func (d *Dashboard) Handler() gin.HandlerFunc
func (*Dashboard) RegisterWebsite ¶ added in v1.0.1
type DashboardResponse ¶ added in v1.0.1
type DashboardResponse struct {
Status Status `json:"status"`
Websites map[string]WebsiteHealth `json:"websites"`
}
type DiskChecker ¶
type DiskChecker struct {
// contains filtered or unexported fields
}
func NewDiskChecker ¶
func NewDiskChecker(name string, path string, minFreeBytes uint64) *DiskChecker
func (*DiskChecker) Name ¶
func (c *DiskChecker) Name() string
type FuncChecker ¶
type FuncChecker struct {
// contains filtered or unexported fields
}
func NewFuncChecker ¶
func NewFuncChecker(name string, fn func(ctx context.Context) Result) *FuncChecker
func (*FuncChecker) Name ¶
func (c *FuncChecker) Name() string
type HTTPChecker ¶
type HTTPChecker struct {
// contains filtered or unexported fields
}
func NewHTTPChecker ¶
func NewHTTPChecker(name, url string, client *http.Client) *HTTPChecker
func (*HTTPChecker) Name ¶
func (c *HTTPChecker) Name() string
type Health ¶
type Health struct {
// contains filtered or unexported fields
}
func (*Health) Handler ¶
func (h *Health) Handler() gin.HandlerFunc
type WebsiteHealth ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.