Documentation ¶
Index ¶
Constants ¶
View Source
const ( RequestCounter = "souin_request_upstream_counter" RequestRevalidationCounter = "souin_request_revalidation_counter" NoCachedResponseCounter = "souin_no_cached_response_counter" CachedResponseCounter = "souin_cached_response_counter" AvgResponseTime = "souin_avg_response_time" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrometheusAPI ¶
type PrometheusAPI struct {
// contains filtered or unexported fields
}
PrometheusAPI object contains informations related to the endpoints
func InitializePrometheus ¶
func InitializePrometheus(configuration configurationtypes.AbstractConfigurationInterface) *PrometheusAPI
InitializePrometheus initialize the prometheus endpoints
func (*PrometheusAPI) GetBasePath ¶
func (p *PrometheusAPI) GetBasePath() string
GetBasePath will return the basepath for this resource
func (*PrometheusAPI) HandleRequest ¶
func (p *PrometheusAPI) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest will handle the request
func (*PrometheusAPI) IsEnabled ¶
func (p *PrometheusAPI) IsEnabled() bool
IsEnabled will return enabled status
Click to show internal directories.
Click to hide internal directories.