package
1.4.0
Repository: https://github.com/leon-yc/ggs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

BackOffKind get kind.
BackOffMaxMs get max time.
BackOffMinMs get min time.
GetAbortPercent get abort percentage.
GetAbortStatus get abort status.
GetCircuitBreakerEnabled get circuit breaker enabled.
GetCircuitBreakerEnabledKey get circuit breaker enabled key.
GetConfigCenterConf return config center conf.
GetContractDiscoveryAddress returns the Address of contract discovery registry.
GetContractDiscoveryAPIVersion returns the APIVersion of contract discovery registry.
GetContractDiscoveryDisable returns the Disable of contract discovery registry.
GetContractDiscoveryTenant returns the Tenant of contract discovery registry.
GetContractDiscoveryType returns the Type of contract discovery registry.
GetDataCenter return data center info.
GetDefaultCircuitBreakerEnabledKey get default circuit breaker enabled key.
GetDefaultErrorPercentThreshold get default error percentage threshold value.
GetDefaultFallbackPolicyKey get default fallback policy key.
GetDefaultForceCloseKey get default force close key.
GetDefaultForceFallbackKey get default force fallback key.
GetDefaultForceOpenKey get default force open key.
GetDefaultGetFallbackEnabledKey get default fallback enabled key.
GetDefaultMaxConcurrentKey get default maximum concurrent key.
GetDefaultRequestVolumeThresholdKey get default request volume threshold key.
GetDefaultSleepWindowKey get default sleep window key.
GetDefaultTimeoutKey get default timeout key.
GetDelayPercent get delay percentage.
GetErrorPercentThreshold get error percent threshold.
GetErrorPercentThresholdKey get error percentage threshold key.
GetFallbackEnabled get fallback enabled.
GetFallbackEnabledKey get fallback enabled key.
GetFallbackPolicyKey get fallback policy key.
GetFaultAbortHTTPStatusKey get fault abort http status key.
GetFaultAbortPercentKey get fault abort percentage key.
GetFaultDelayPercentKey get fault daley percentage key.
GetFaultFixedDelayKey get fault fixed delay key.
GetFaultInjectionGlobalKey get fault injection global key.
GetFaultInjectionOperationKey get fault injection operation key.
GetFaultInjectionSchemaKey get fault injection schema key.
GetFaultInjectionServiceKey get fault injection service key.
GetFilterNamesKey get filer name and key.
GetFixedDelay get fixed delay.
GetForceClose get force close.
GetForceCloseKey get force close key.
GetForceFallback get force fallback.
GetForceFallbackKey get force fallback key.
GetForceOpen get foce open.
GetForceOpenKey get force open key.
GetHystrixConfig return cb config.
GetHystrixSpecificKey get hystrix specific key.
GetLoadBalancing return lb config.
GetMaxConcurrentKey get maximum concurrent key.
GetMaxConcurrentRequests get max concurrent requests.
GetPolicy get fallback policy.
GetRegistratorAddress returns the Address of service registry.
GetRegistratorAPIVersion returns the APIVersion of service registry.
GetRegistratorAutoRegister returns the AutoRegister of service registry.
GetRegistratorDisable returns the Disable of service registry.
GetRegistratorScope returns the Scope of service registry.
GetRegistratorTenant returns the Tenant of service registry.
GetRegistratorType returns the Type of service registry.
GetRequestVolumeThreshold get request volume threshold.
GetRequestVolumeThresholdKey get request volume threshold key.
GetRetryOnNext return value of GetRetryOnNext.
GetRetryOnSame return value of RetryOnSame.
GetRouterEndpoints returns the router address.
GetRouterType returns the type of router.
GetServerListFilters get server list filters.
GetServiceDiscoveryAddress returns the Address of SD registry.
GetServiceDiscoveryAPIVersion returns the APIVersion of SD registry.
GetServiceDiscoveryConfigPath returns the configpath of SD registry.
GetServiceDiscoveryDisable returns the Disable of SD registry.
GetServiceDiscoveryHealthCheck returns the HealthCheck of SD registry.
GetServiceDiscoveryRefreshInterval returns the RefreshInterval of SD registry.
GetServiceDiscoveryTenant returns the Tenant of SD registry.
GetServiceDiscoveryType returns the Type of SD registry.
GetServiceDiscoveryWatch returns the Watch of SD registry.
GetSessionTimeout return session timeout.
GetSleepWindow get sleep window.
GetSleepWindowKey get sleep window key.
GetStrategyName get strategy name.
GetTimeout get timeout durations.
GetTimeoutDuration get timeout durations from cache first, then get from archaius.
GetTimeoutDurationFromArchaius get timeout durations from archaius.
GetTimeoutKey get timeout key.
GetTransportConf return transport settings.
Init is initialize the configuration directory, archaius, route rule, and schema.
InitArchaius initialize the archaius.
NewServiceRule create a rule by raw data.
ReadGlobalConfigFromArchaius for to unmarshal the global config file(chassis.yaml) information.
ReadHystrixFromArchaius is unmarshal hystrix configuration file(circuit_breaker.yaml).
ReadLBFromArchaius for to unmarshal the global config file(chassis.yaml) information.
ReadMicroserviceConfigFromBytes read micro service configurations from bytes.
RetryEnabled retry enabled.
StrategySuccessiveFailedTimes strategy successive failed times.

# Constants

constant for default values of abort and delay.
constant for default values of abort and delay.
constant for hystrix parameters.
constant for hystrix parameters.
DefaultConfigPath set the default config path.
constant for hystrix parameters.
constant for default values of abort and delay.
constant for hystrix parameters.
DefaultFailedTimes is default value for failed times.
constant for hystrix parameters.
constant for hystrix parameters.
constant for hystrix parameters.
constant for hystrix parameters.
constant for hystrix parameters.
DefaultRouterType set the default router type.
DefaultSessionTimeout is default value for timeout.
constant for hystrix parameters.
constant for service registry parameters.
constant for service registry parameters.
DefaultStrategy is default value for strategy.
constant for hystrix parameters.
constant for hystrix parameters.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
降级.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix parameters.
constant for hystrix parameters.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
失败率.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
constant for hystrix keys.
窗口请求数.
constant for hystrix keys.
熔断时间窗.
constant for hystrix keys.
constant for hystrix keys.

# Variables

ErrNoName is used to represent the service name missing error.
GlobalDefinition is having the information about region, load balancing, service center, config center, protocols, and handlers for the micro service.
HystrixConfig is having info about isolation, circuit breaker, fallback properities of the micro service.
MicroserviceDefinition has info about application id, provider info, description of the service, and description of the instance.
NodeIP gives the information of node ip.
OldRouterDefinition is route rule configDeprecated.

# Structs

DarkLaunchRule dark launch ruleDeprecated.
Match is checking source, source tags, and http headers.
Prefix hold all config items.
Router define where rule comes from.
RouterConfig is the struct having info about route rule destinations, source templatesDeprecated.
RouteRule is having route rule parameters.
RouteTag gives route tag information.
RuleItem rule itemDeprecated.
ServiceComb hold all config items.

# Type aliases

OneServiceRule save route rule for one service.