Documentation
¶
Index ¶
- Constants
- Variables
- func Handle(address string, provider config.Provider) error
- func InitLabels()
- func ObserveLogin(amrValue, redirect string)
- func ObserveLogout(operation LogoutOperation)
- func ObserveRedisLatency(operation string, fun func() error) error
- func Register(registry prometheus.Registerer)
- func WithProvider(provider string)
- type Hpa
- type LogoutOperation
- type RedisOperation
Constants ¶
View Source
const ( Namespace = "wonderwall" LabelAmr = "amr" LabelHpa = "hpa" LabelOperation = "operation" LabelProvider = "provider" LabelRedirect = "redirect" )
View Source
const ( LogoutOperationFrontChannel = "front_channel" LogoutOperationLocal = "local" LogoutOperationSelfInitiated = "self_initiated" )
View Source
const ( RedisOperationRead = "Read" RedisOperationWrite = "Write" RedisOperationUpdate = "Update" RedisOperationDelete = "Delete" )
View Source
const (
HpaRate = "rate"
)
Variables ¶
View Source
var ( RedisLatency = redisLatency() Logins = logins() Logouts = logouts() )
Functions ¶
func ObserveLogin ¶
func ObserveLogin(amrValue, redirect string)
func ObserveLogout ¶
func ObserveLogout(operation LogoutOperation)
func ObserveRedisLatency ¶
func Register ¶
func Register(registry prometheus.Registerer)
func WithProvider ¶
func WithProvider(provider string)
Types ¶
type LogoutOperation ¶
type LogoutOperation = string
type RedisOperation ¶
type RedisOperation = string
Click to show internal directories.
Click to hide internal directories.