Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigFetcher ¶
type ConfigFetcher struct {
// contains filtered or unexported fields
}
func (*ConfigFetcher) Fetch ¶
func (cf *ConfigFetcher) Fetch(alert, node string) (*RemedyConfig, error)
Fetch returns the first remedy configuration for alert that matches node, or nil if no config matched
type Configurator ¶
type Configurator interface {
Fetch(string, string) (*RemedyConfig, error)
}
type Dispatcher ¶
type Dispatcher struct {
*DispatcherConfig
}
func NewDispatcher ¶
func NewDispatcher(conf *DispatcherConfig) *Dispatcher
type DispatcherConfig ¶
type DispatcherConfig struct {
// contains filtered or unexported fields
}
func NewDispatcherConfig ¶
func NewDispatcherConfig(r Rediser) *DispatcherConfig
type Ratelimit ¶
type Ratelimit struct {
// contains filtered or unexported fields
}
Ratelimit is a distributed rate limiter, which uses this pattern: https://redislabs.com/redis-best-practices/basic-rate-limiting/
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.