package
1.6.0-beta.5
Repository: https://github.com/polarismesh/polaris-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ConvertDuration converts to golang duration and logs errors.
ConvertServerErrorToRpcError 将server返回码转化为服务调用的返回码.
GenServicesRevision 修正服务.
GetEventType 通过应答类型获取事件类型.
GetMaxValidDuration 获取最大校验周期.
GetProtoRequestType 通过事件类型获取请求类型.
No description provided by the author
NewInstanceInProto InstanceInProto的构造函数.
NewRoutingRuleInProto 兼容接口, trpc-go依赖项.
NewServiceInstancesInProto ServiceInstancesResponse的构造函数.
NewServiceRuleInProto 创建路由规则配置对象.
NewServiceRuleInProtoWithInitializeStatus 创建路由规则配置对象.
NewServicesProto 新建服务proto.
ProtoDurationToMS pb时间段转毫秒.
ValidateMessage 校验消息 校验返回码为500或者消息类型不对.
# Constants
DefaultRateLimitReportAmountPresent 默认满足百分之80的请求后立刻限流上报.
DefaultRejectRateLimiter 默认的reject限流器.
No description provided by the author
MaxRateLimitReportAmountPresent 最大实时上报百分比.
MinRateLimitReportAmountPresent 最小实时上报百分比.
# Variables
ServerErrorCodeTypeMap 获取server错误码类型的map.
# Structs
No description provided by the author
DiscoverError 从discover获取到了类似500的错误码.
No description provided by the author
InstanceInProto 通过proto定义来构造实例.
RateLimitingAssistant 限流解析助手.
RateLimitRuleCache 规则PB缓存.
RoutingAssistant 路由规则解析助手.
ServiceInstancesInProto 通用的应答.
ServiceRuleInProto 路由规则配置对象.
ServicesProto 批量服务.
SvcPluginValues 服务级插件值.
# Interfaces
ServiceRuleAssistant 助手接口.
# Type aliases
InstSlice instSlice,[]*namingpb.Instance的别名.