Documentation ¶
Index ¶
- Constants
- func FlushCircuitByKey(key string)
- func GetCircuitName(sourceName, serviceName string) string
- func GetNames(key string) (string, string)
- func Init()
- func RegisterKeys(eventListener core.EventListener, keys ...string)
- type CircuitBreakerEventListener
- type DarkLaunchEventListener
- type LoadbalanceEventListener
- type QPSEventListener
Constants ¶
const ( // ConsumerIsolationKey is a variable of type string ConsumerIsolationKey = "cse.isolation" ConsumerCircuitbreakerKey = "cse.circuitBreaker" ConsumerFallbackKey = "cse.fallback" ConsumerFallbackPolicyKey = "cse.fallbackpolicy" )
constants for consumer isolation, circuit breaker, fallback keys
const ( //LbStrategyNameKey & LbStrategyTimeoutKey are variables of type string LbStrategyNameKey = "cse.loadbalance.strategy.name" LbStrategyTimeoutKey = "cse.loadbalance.strategy.sessionTimeoutInSeconds" Update = "update" Delete = "delete" )
constants for loadbalance strategy name, and timeout
const ( //DarkLaunchKey & DarkLaunchPrefix is a variable of type string DarkLaunchKey = "^cse\\.darklaunch\\.policy\\." DarkLaunchPrefix = "cse.darklaunch.policy." )
constants for dark launch key and prefix
const (
//QPSLimitKey is a variable of type string
QPSLimitKey = "cse.flowcontrol"
)
Variables ¶
This section is empty.
Functions ¶
func FlushCircuitByKey ¶
func FlushCircuitByKey(key string)
FlushCircuitByKey is a function used to flush for a particular key
func GetCircuitName ¶
GetCircuitName is a function used to get circuit names
func RegisterKeys ¶
func RegisterKeys(eventListener core.EventListener, keys ...string)
RegisterKeys registers a config key to the archaius
Types ¶
type CircuitBreakerEventListener ¶
type CircuitBreakerEventListener struct {
Key string
}
CircuitBreakerEventListener is a struct with one string variable
func (*CircuitBreakerEventListener) Event ¶
func (e *CircuitBreakerEventListener) Event(event *core.Event)
Event is a method which triggers flush circuit
type DarkLaunchEventListener ¶
type DarkLaunchEventListener struct{}
DarkLaunchEventListener is a struct
func (*DarkLaunchEventListener) Event ¶
func (e *DarkLaunchEventListener) Event(event *core.Event)
Event is method used for dark launch event listening
type LoadbalanceEventListener ¶
type LoadbalanceEventListener struct {
Key string
}
LoadbalanceEventListener is a struct
func (*LoadbalanceEventListener) Event ¶
func (e *LoadbalanceEventListener) Event(event *core.Event)
Event is a method used to handle a load balancing event
type QPSEventListener ¶
type QPSEventListener struct { //Key []string Key string }
QPSEventListener is a struct used for Event listener
func (*QPSEventListener) Event ¶
func (e *QPSEventListener) Event(event *core.Event)
Event is a method for QPS event listening