client

package
v0.0.0-...-f70a1fa Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

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 RPCServerOption struct {
	Name     string `json:"name" mapstructure:"name" yaml:"name"`
	Intranet string `json:"intranet"  mapstructure:"intranet" yaml:"intranet"`
}

type RpcClientConf

type RpcClientConf struct {
	Addr             string
	MuxConnectionNum int
	RpcTimeout       time.Duration
	ServiceName      string
}

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"`
}

**********************************公共对象*******************************

Jump to

Keyboard shortcuts

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