Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Version of braid-go
Version = "v1.2.26"
)
Variables ¶
View Source
var ( ErrTypeConvFailed = errors.New("type conversion failed") // 默认提供的模块 LoggerZap = zaplogger.Name PubsubNsq = pubsubnsq.Name DiscoverConsul = discoverconsul.Name ElectorConsul = electorconsul.Name ElectorK8s = electork8s.Name ClientGRPC = grpcclient.Name ServerGRPC = grpcserver.Name TracerJaeger = jaegertracing.Name BalancerSWRR = balancernormal.Name LinkcacheRedis = linkerredis.Name )
Functions ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
3rd
|
|
internal
|
|
balancer
接口文件 balancer 负载均衡
|
接口文件 balancer 负载均衡 |
discover
接口文件 discover 服务发现 这个模块会创建 ServiceUpdate Topic,通过这个 Topic 发布集群中相关服务的变更信息
|
接口文件 discover 服务发现 这个模块会创建 ServiceUpdate Topic,通过这个 Topic 发布集群中相关服务的变更信息 |
elector
接口文件 elector 选举,主要用于分布式系统中的选举 这个模块会创建 ChangeState Topic,通过这个 Topic 发布当前进程所处于的状态
|
接口文件 elector 选举,主要用于分布式系统中的选举 这个模块会创建 ChangeState Topic,通过这个 Topic 发布当前进程所处于的状态 |
linkcache
接口文件 linkcache 链路缓存,主要用于维护携带 token 相关的链路调用信息 1.
|
接口文件 linkcache 链路缓存,主要用于维护携带 token 相关的链路调用信息 1. |
logger
接口文件 logger 日志接口
|
接口文件 logger 日志接口 |
pubsub
接口文件 mailbox 邮箱,主要用于包装 Pub-sub 消息模型
|
接口文件 mailbox 邮箱,主要用于包装 Pub-sub 消息模型 |
rpc/client
接口文件 client 定义 RPC 服务的客户端接口
|
接口文件 client 定义 RPC 服务的客户端接口 |
rpc/server
接口文件 server 定义 RPC 服务的服务端接口
|
接口文件 server 定义 RPC 服务的服务端接口 |
tracer
接口文件 tracer 分布式追踪服务
|
接口文件 tracer 分布式追踪服务 |
modules
|
|
balancernormal
实现文件 brandom 随机负载均衡算法实现 实现文件 balancernormal 负载均衡管理器,主要用于统筹管理 服务:负载均衡算法 实现文件 balancerswrr 平滑加权负载均衡算法实现
|
实现文件 brandom 随机负载均衡算法实现 实现文件 balancernormal 负载均衡管理器,主要用于统筹管理 服务:负载均衡算法 实现文件 balancerswrr 平滑加权负载均衡算法实现 |
discoverconsul
实现文件 基于 consul 实现的服务发现
|
实现文件 基于 consul 实现的服务发现 |
electorconsul
实现文件 electorconsul 基于 consul 实现的选举
|
实现文件 electorconsul 基于 consul 实现的选举 |
electork8s
实现文件 electork8s 基于 k8sclient 实现的选举
|
实现文件 electork8s 基于 k8sclient 实现的选举 |
grpcclient
实现文件 基于 grpc 实现的 rpc-client
|
实现文件 基于 grpc 实现的 rpc-client |
grpcserver
实现文件 grpcserver 基于 grpc 实现的 rpc-server
|
实现文件 grpcserver 基于 grpc 实现的 rpc-server |
jaegertracing
实现文件 jaegertracing 基于 jaeger 实现的分布式追踪服务
|
实现文件 jaegertracing 基于 jaeger 实现的分布式追踪服务 |
linkerredis
实现文件 linkerredis 基于 redis 实现的链路缓存
|
实现文件 linkerredis 基于 redis 实现的链路缓存 |
pubsubnsq
实现文件 基于 nsq 实现的 pubsub
|
实现文件 基于 nsq 实现的 pubsub |
zaplogger
实现文件 zaplogger 基于 zap 实现的logger
|
实现文件 zaplogger 基于 zap 实现的logger |
Click to show internal directories.
Click to hide internal directories.