Documentation
¶
Index ¶
- Constants
- func CreateExternalEndpointResult(cfg *config.Config) fiber.Handler
- func EndpointStatus(cfg *config.Config) fiber.Handler
- func EndpointStatuses(cfg *config.Config) fiber.Handler
- func HealthBadge(c *fiber.Ctx) error
- func HealthBadgeShields(c *fiber.Ctx) error
- func ResponseTimeBadge(cfg *config.Config) fiber.Handler
- func ResponseTimeChart(c *fiber.Ctx) error
- func ResponseTimeHistory(c *fiber.Ctx) error
- func ResponseTimeRaw(c *fiber.Ctx) error
- func SinglePageApplication(uiConfig *ui.Config) fiber.Handler
- func SuiteStatus(cfg *config.Config) fiber.Handler
- func SuiteStatuses(cfg *config.Config) fiber.Handler
- func UptimeBadge(c *fiber.Ctx) error
- func UptimeRaw(c *fiber.Ctx) error
- type API
- type ConfigHandler
- type CustomCSSHandler
Constants ¶
const ( HealthStatusUp = "up" HealthStatusDown = "down" HealthStatusUnknown = "?" )
const ( // DefaultPage is the default page to use if none is specified or an invalid value is provided DefaultPage = 1 // DefaultPageSize is the default page size to use if none is specified or an invalid value is provided DefaultPageSize = 50 )
Variables ¶
This section is empty.
Functions ¶
func CreateExternalEndpointResult ¶ added in v5.9.0
func EndpointStatus ¶
EndpointStatus retrieves a single endpoint.Status by group and endpoint name
func EndpointStatuses ¶
EndpointStatuses handles requests to retrieve all EndpointStatus Due to how intensive this operation can be on the storage, this function leverages a cache.
func HealthBadge ¶
HealthBadge handles the automatic generation of badge based on the group name and endpoint name passed.
func HealthBadgeShields ¶ added in v5.8.0
func ResponseTimeBadge ¶
ResponseTimeBadge handles the automatic generation of badge based on the group name and endpoint name passed.
Valid values for :duration -> 30d, 7d, 24h, 1h
func ResponseTimeChart ¶
func ResponseTimeHistory ¶ added in v5.30.0
func ResponseTimeRaw ¶ added in v5.18.0
func SuiteStatus ¶ added in v5.24.0
SuiteStatus handles requests to retrieve a single suite's status
func SuiteStatuses ¶ added in v5.24.0
SuiteStatuses handles requests to retrieve all suite statuses
func UptimeBadge ¶
UptimeBadge handles the automatic generation of badge based on the group name and endpoint name passed.
Valid values for :duration -> 30d, 7d, 24h, 1h
Types ¶
type ConfigHandler ¶
type ConfigHandler struct {
// contains filtered or unexported fields
}
type CustomCSSHandler ¶ added in v5.15.0
type CustomCSSHandler struct {
// contains filtered or unexported fields
}
func (CustomCSSHandler) GetCustomCSS ¶ added in v5.15.0
func (handler CustomCSSHandler) GetCustomCSS(c *fiber.Ctx) error