client

package
v0.0.0-...-bb7101a Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 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"  yaml:"timeout_control"` //超时控制
	ConnectionType connectionType `json:"connection_type" yaml:"connection_type"`  // 连接类型
	FailureRetry   failureRetry   `json:"failure_retry" yaml:"failure_retry"`      //请求重试
	LoadBalancer   loadBalancer   `json:"load_balancer" yaml:"load_balancer"`      //负载均衡
	CBSuite        cbsuite        `json:"cb_suite" yaml:"cb_suite"`                //熔断器
	StatsLevel     StatsLevel     `json:"stats_level"  yaml:"stats_level"`         //埋点策略&埋点粒度
}

Client **********************************客户端对象****************************** 客户端配置

type Jaeger

type Jaeger struct {
	Enable   bool   `json:"enable" yaml:"enable"`      //是否启用链路追踪
	Endpoint string `json:"endpoint"  yaml:"endpoint"` //地址
}

Jaeger 链路追踪配置

type Polaris

type Polaris struct {
	Enable  bool   `json:"enable"  yaml:"enable"` //是否启用注册中心,默认开启
	Network string `json:"network"  yaml:"network"`
	Address string `json:"address" yaml:"address"`
}

Polaris 注册中心配置

type RPCServerOption

type RPCServerOption struct {
	Name     string `json:"name"  yaml:"name"`
	Intranet string `json:"intranet"   yaml:"intranet"`
}

type RpcClientConf

type RpcClientConf struct {
	Addr             string `json:"addr"`
	MuxConnectionNum int
	RpcTimeout       time.Duration
	ServiceName      string
	ServiceVersion   string
}

type StatsLevel

type StatsLevel struct {
	LevelDisabled bool `json:"level_disabled"  yaml:"level_disabled"`
	LevelBase     bool `json:"level_base"  yaml:"level_base"`
	LevelDetailed bool `json:"level_detailed"  yaml:"level_detailed"`
}

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

Jump to

Keyboard shortcuts

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