package
1.18.1
Repository: https://github.com/polarismesh/polaris.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CalculateInstanceID 计算实例ID.
CalculateRuleID 计算规则ID.
No description provided by the author
CheckContractTetrad 根据服务实例四元组计算ID.
CheckDbMetaDataFieldLen 检查metadata的K,V是否超过DB中对应字段的最大字符长度限制.
CheckDbRawStrFieldLen 检查name字段是否超过DB中对应字段的最大字符长度限制.
CheckDbStrFieldLen 检查name字段是否超过DB中对应字段的最大字符长度限制.
CheckInstanceHost 检查服务实例Host.
CheckInstancePort 检查服务实例Port.
CheckInstanceTetrad 根据服务实例四元组计算ID.
CheckMetadata check metadata 检查metadata的个数 最大是64个 key/value是否符合要求.
CheckQueryLimit 检查查询参数Limit.
CheckQueryOffset 检查查询参数Offset.
CheckResourceName 检查资源Name.
CheckResourceOwners 检查资源Owners.
CollectMapKeys collect filters key to slice.
ConvertFilter map[string]string to map[string][]string.
ConvertGRPCContext 将GRPC上下文转换成内部上下文.
ConvertStringValuesToSlice 转换StringValues为字符串切片.
No description provided by the author
GenFileId 生成文件 Id.
No description provided by the author
No description provided by the author
IsNotEqualMap metadata need update.
IsPrefixWildName 判断名字是否为通配名字,只支持前缀索引(名字最后为*).
IsSuffixWildName 判断名字是否为通配名字,只支持后缀索引(名字第一个字符为*).
IsWildMatch 判断 name 是否匹配 pattern,pattern 可以是前缀或者后缀.
IsWildMatchIgnoreCase 判断 name 是否匹配 pattern,pattern 可以是前缀或者后缀,忽略大小写.
IsWildName 判断名字是否为通配名字,前缀或者后缀.
IsWildNotMatch .
MarshalToJsonString marshal json message to string.
No description provided by the author
No description provided by the author
No description provided by the author
NewBoolValue returns a new BoolValue with the given value.
NewMap.
NewUUID 返回一个随机的UUID.
No description provided by the author
NewSet returns a new Set.
NewStringValue returns a new StringValue with the given value.
NewSyncMap.
NewSyncSet returns a new Set.
NewUInt32Value returns a new UInt32Value with the given value.
NewUInt64Value returns a new UInt64Value with the given value.
NewUUID 返回一个随机的UUID.
NewV2Revision 返回一个随机的UUID.
ParseAuthToken 从ctx中获取token.
ParseClientAddress 从ctx中获取客户端地址.
ParseClientIP .
ParseFileId 解析文件 Id.
ParseIsOwner 从ctx中获取token.
ParseOffsetAndLimit 统一格式化处理Offset和limit参数.
ParseOperator 从ctx中获取operator.
ParseOwnerID 从ctx解析Owner ID.
ParsePlatformID 从ctx中获取Platform-Id.
ParsePlatformToken 从ctx中获取Platform-Token.
ParseQueryLimit 格式化处理limit参数.
ParseQueryOffset 格式化处理offset参数.
ParseRequestID 从ctx中获取Request-ID.
ParseToken 从ctx中获取token.
ParseUserID 从ctx中解析用户ID.
ParseUserName 从ctx解析用户名称.
ParseWildName 判断是否为格式化查询条件并且返回真正的查询信息.
ParseWildNameForSql 如果 name 是通配字符串,将通配字符*替换为sql中的%.
RequestID 从ctx中获取Request-ID.
No description provided by the author
StringSliceDeDuplication 字符切片去重.
UnmarshalFromJsonString unmarshal message from json string.
ValueLocalhost 获取localhost.
WithLocalhost 存储localhost.
ZapFileName 生成fileName的日志描述.
ZapGroup 生成group的日志描述.
ZapInstanceID 生成instanceID的日志描述.
ZapNamespace 生成namespace的日志描述.
ZapPlatformID 生成Platform-ID的日志描述.
ZapReleaseName 生成fileName的日志描述.
ZapRequestID 生成Request-ID的日志描述.

# Constants

ConfigFileFormKey 配置文件表单键.
ConfigFileImportConflictOverwrite 导入配置文件发生冲突覆盖原配置文件.
ConfigFileImportConflictSkip 导入配置文件发生冲突跳过.
ConfigFileMetaFileName 配置文件元数据文件名.
ContextAuthContextKey auth context key.
ContextAuthTokenKey auth token key.
ContextClientAddress client address key.
ContextGrpcHeader grpc header key.
ContextIsFromClient is from client.
ContextIsFromSystem is from polaris system.
ContextIsOwnerKey is owner key.
ContextOpenAsyncRegis open async register key.
ContextOperator operator info.
ContextOwnerIDKey owner id key.
ContextUserIDKey user id key.
ContextUserNameKey users name key.
ContextUserRoleIDKey user role key.
EmptyErrString empty error string.
No description provided by the author
No description provided by the author
No description provided by the author
文件格式.
No description provided by the author
No description provided by the author
No description provided by the author
HeaderAuthTokenKey auth token key.
HeaderIsOwnerKey is owner key.
HeaderOwnerIDKey owner id key.
HeaderUserIDKey user id key.
HeaderUserRoleKey user role key.
MatchAll rule match all service or namespace value.
MaxBatchSize max batch size.
some options config.
some options config.
some options config.
some options config.
some options config.
circuitbreaker表.
some options config.
some options config.
some options config.
instance表.
some options config.
some options config.
some options config.
some options config.
some options config.
some options config.
some options config.
service表.
some options config.
some options config.
some options config.
some options config.
some options config.
MaxMetadataLength metadata max length.
some options config.
some options config.
MaxQuerySize max query size.
MaxRequestBodySize 导入配置文件请求体最大 4M.
NilErrString null pointer error string.
PolarisCode polaris code.
PolarisMessage polaris message.
PolarisRequestID request_id.
QueryDefaultLimit default query limit.
QueryDefaultOffset default query offset.
QueryMaxLimit default query max.
ReleaseStatusFail 发布失败状态.
ReleaseStatusSuccess 发布成功状态.
ReleaseStatusToRelease 待发布状态.
ReleaseTypeCancelGray 取消灰度发布.
ReleaseTypeClean 发布类型,清空配置发布.
ReleaseTypeDelete 发布类型,删除配置发布.
ReleaseTypeGray 灰度发布.
ReleaseTypeNormal 发布类型,全量发布.
ReleaseTypeRollback 发布类型 回滚.

# Variables

ConfDir default config dir.
LocalHost local host.
LocalPort default listen port.

# Structs

No description provided by the author
ConfigFileMeta 导入配置文件ZIP包中的元数据结构.
No description provided by the author
Map.
No description provided by the author
No description provided by the author
SyncMap.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author