Documentation ¶
Index ¶
- Constants
- func CreateExternalEndpointResult(cfg *config.Config) fiber.Handler
- func EndpointStatus(c *fiber.Ctx) error
- 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 SinglePageApplication(ui *ui.Config) fiber.Handler
- func UptimeBadge(c *fiber.Ctx) error
- type API
- type ConfigHandler
Constants ¶
View Source
const ( HealthStatusUp = "up" HealthStatusDown = "down" HealthStatusUnknown = "?" )
View Source
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 = 20 // MaximumPageSize is the maximum page size allowed MaximumPageSize = common.MaximumNumberOfResults )
Variables ¶
This section is empty.
Functions ¶
func CreateExternalEndpointResult ¶ added in v5.9.0
func EndpointStatus ¶
func EndpointStatus(c *fiber.Ctx) error
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 ¶
func HealthBadge(c *fiber.Ctx) error
HealthBadge handles the automatic generation of badge based on the group name and endpoint name passed.
func HealthBadgeShields ¶ added in v5.8.0
func HealthBadgeShields(c *fiber.Ctx) error
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 ResponseTimeChart(c *fiber.Ctx) error
func SinglePageApplication ¶
func UptimeBadge ¶
func UptimeBadge(c *fiber.Ctx) error
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
}
func (ConfigHandler) GetConfig ¶
func (handler ConfigHandler) GetConfig(c *fiber.Ctx) error
Click to show internal directories.
Click to hide internal directories.