Documentation ¶
Index ¶
- Variables
- func SaveToEgressCache(egressConfigFromPilot map[string][]*config.EgressRule)
- type PilotPanel
- func (p *PilotPanel) GetCircuitBreaker(inv invocation.Invocation, serviceType string) (string, hystrix.CommandConfig)
- func (p *PilotPanel) GetEgressRule() []control.EgressConfig
- func (p *PilotPanel) GetFaultInjection(inv invocation.Invocation) model.Fault
- func (p *PilotPanel) GetLoadBalancing(inv invocation.Invocation) control.LoadBalancingConfig
- func (p *PilotPanel) GetRateLimiting(inv invocation.Invocation, serviceType string) control.RateLimitingConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//key is service name
EgressConfigCache = cache.New(0, 0)
)
save configs
Functions ¶
func SaveToEgressCache ¶
func SaveToEgressCache(egressConfigFromPilot map[string][]*config.EgressRule)
SaveToEgressCache save the egress rules in the cache
Types ¶
type PilotPanel ¶
type PilotPanel struct { }
PilotPanel pull configs from istio pilot
func (*PilotPanel) GetCircuitBreaker ¶
func (p *PilotPanel) GetCircuitBreaker(inv invocation.Invocation, serviceType string) (string, hystrix.CommandConfig)
GetCircuitBreaker return command , and circuit breaker settings
func (*PilotPanel) GetEgressRule ¶
func (p *PilotPanel) GetEgressRule() []control.EgressConfig
GetEgressRule get egress config
func (*PilotPanel) GetFaultInjection ¶
func (p *PilotPanel) GetFaultInjection(inv invocation.Invocation) model.Fault
GetFaultInjection get Fault injection config
func (*PilotPanel) GetLoadBalancing ¶
func (p *PilotPanel) GetLoadBalancing(inv invocation.Invocation) control.LoadBalancingConfig
GetLoadBalancing get load balancing config
func (*PilotPanel) GetRateLimiting ¶
func (p *PilotPanel) GetRateLimiting(inv invocation.Invocation, serviceType string) control.RateLimitingConfig
GetRateLimiting get rate limiting config
Click to show internal directories.
Click to hide internal directories.