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

# Packages

No description provided by the author
Package mock is a generated GoMock package.
No description provided by the author

# Functions

Code 根据error接口,获取状态码.
Error 普通error转StatusError.
GetStore 获取Store.
NewStatusError 根据code和message创建StatusError.
RegisterStore 注册一个新的Store.
SetStoreConfig 设置store的conf.
TestGetStore 获取Store.
TestInjectConfig just for test.

# Constants

操作的行数与预期不符合.
数据冲突,在并发更新metadata的时候可能会出现.
数据库死锁.
主键重复,一般是资源已存在了,提醒用户资源存在.
No description provided by the author
No description provided by the author
参数不合法.
在删除规则时,发现存在已经发布的版本.
外键错误,一般是操作不当导致的.
非法的用户ID列表.
Failed to find target CircuitBreaker.
在标记规则前,需要保证规则的master版本存在.
网格订阅服务的时候,网格或者服务不存在.
更新订阅服务的时候,订阅服务不存在.
找不到namespace,service插入依赖namespace是否存在.
Failed to find fuse breaker information associated with service.
状态码定义.
找不到service,在instance等资源插入的时候依赖service是否存在.
在发布规则前,需要保证规则已标记且服务存在.
用户不存在.
用户组不存在.
状态码定义.
数据不合法,比如越级了,超过了字段大小.
状态码定义.

# Variables

StoreSlots store slots.

# Structs

Config Store的通用配置.
InstanceArgs 用于通过服务实例查询服务的参数.
No description provided by the author
LeaderChangeEvent.
StatusError 包括了状态码的error接口.

# Interfaces

No description provided by the author
CircuitBreakerStore 熔断规则的存储接口.
ClientStore store interface for client info.
ConfigFileGroupStore 配置文件组存储接口.
ConfigFileModuleStore 配置中心模块存储接口.
ConfigFileReleaseHistoryStore 配置文件发布历史存储接口.
ConfigFileReleaseStore 配置文件发布存储接口.
ConfigFileStore 配置文件存储接口.
ConfigFileTemplateStore config file template store.
FaultDetectRuleStore store api for the fault detector config.
GrayStore Gray storage interface.
GroupStore User group storage operation interface.
InstanceStore 实例存储接口.
L5Store L5扩展存储接口.
NamespaceStore Namespace storage interface.
NamingModuleStore Service discovery, governance center module storage interface.
RateLimitStore 限流规则的存储接口.
RoutingConfigStore 路由配置表的存储接口.
RoutingConfigStoreV2 路由配置表的存储接口.
No description provided by the author
ServiceStore 服务存储接口.
Store 通用存储接口.
StrategyStore Authentication policy related storage operation interface.
ToolStore Storage related functions and tool interfaces.
Transaction Transaction interface, does not support multi-level concurrency operation, currently only support a single price serial operation.
Tx Atomic matters without any business attributes.Abstraction of different storage type transactions.
UserStore User-related operation interface.

# Type aliases

StatusCode 存储层的状态码.