archaius

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//key is service name
	LBConfigCache = cache.New(0, 0)
	//key is [Provider|Consumer]:service_name or [Consumer|Provider]
	CBConfigCache     = cache.New(0, 0)
	RLConfigCache     = cache.New(0, 0)
	EgressConfigCache = cache.New(0, 0)
	FIConfigCache     = cache.New(0, 0)
)

save configs

Default values

Functions

func GetCBCacheKey

func GetCBCacheKey(serviceName, serviceType string) string

GetCBCacheKey generate cache key

func SaveToCBCache

func SaveToCBCache(raw *model.HystrixConfig)

SaveToCBCache save configs

func SaveToLBCache

func SaveToLBCache(raw *model.LoadBalancing)

SaveToLBCache save configs

Types

type Panel

type Panel struct {
}

Panel pull configs from archaius

func (*Panel) GetCircuitBreaker

func (p *Panel) GetCircuitBreaker(inv invocation.Invocation, serviceType string) (string, hystrix.CommandConfig)

GetCircuitBreaker return command , and circuit breaker settings

func (*Panel) GetEgressRule

func (p *Panel) GetEgressRule() []control.EgressConfig

GetEgressRule get egress config

func (*Panel) GetFaultInjection

func (p *Panel) GetFaultInjection(inv invocation.Invocation) model.Fault

GetFaultInjection get Fault injection config

func (*Panel) GetLoadBalancing

func (p *Panel) GetLoadBalancing(inv invocation.Invocation) control.LoadBalancingConfig

GetLoadBalancing get load balancing config

func (*Panel) GetRateLimiting

func (p *Panel) GetRateLimiting(inv invocation.Invocation, serviceType string) control.RateLimitingConfig

GetRateLimiting get rate limiting config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL