Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { TimeoutControl timeOutControl `json:"timeout_control" mapstructure:"timeout_control" yaml:"timeout_control"` //超时控制 ConnectionType connectionType `json:"connection_type" mapstructure:"connection_type" yaml:"connection_type"` // 连接类型 FailureRetry failureRetry `json:"failure_retry" mapstructure:"failure_retry" yaml:"failure_retry"` //请求重试 LoadBalancer loadBalancer `json:"load_balancer" mapstructure:"load_balancer" yaml:"load_balancer"` //负载均衡 CBSuite cbsuite `json:"cb_suite" mapstructure:"cb_suite" yaml:"cb_suite"` //熔断器 StatsLevel StatsLevel `json:"stats_level" mapstructure:"stats_level" yaml:"stats_level"` //埋点策略&埋点粒度 }
Client **********************************客户端对象****************************** 客户端配置
type Jaeger ¶
type Jaeger struct { Enable bool `json:"enable" mapstructure:"enable" yaml:"enable"` //是否启用链路追踪 Endpoint string `json:"endpoint" mapstructure:"endpoint" yaml:"endpoint"` //地址 }
Jaeger 链路追踪配置
type Polaris ¶
type Polaris struct { Enable bool `json:"enable" mapstructure:"enable" yaml:"enable"` //是否启用注册中心,默认开启 Network string `json:"network" mapstructure:"network" yaml:"network"` Address string `json:"address" mapstructure:"address" yaml:"address"` }
Polaris 注册中心配置
type RPCServerOption ¶
type RpcClientConf ¶
type StatsLevel ¶
type StatsLevel struct { LevelDisabled bool `json:"level_disabled" mapstructure:"level_disabled" yaml:"level_disabled"` LevelBase bool `json:"level_base" mapstructure:"level_base" yaml:"level_base"` LevelDetailed bool `json:"level_detailed" mapstructure:"level_detailed" yaml:"level_detailed"` }
**********************************公共对象*******************************
Click to show internal directories.
Click to hide internal directories.