Versions in this module Expand all Collapse all v0 v0.1.1 Jul 14, 2023 v0.1.0 May 22, 2023 Changes in this version + var ErrDuplicatedUser = errors.New("duplicated user") + var ErrInvalidFailureRateThreshold = errors.New("invalid FailureRateThreshold") + var ErrInvalidScope = errors.New("invalid scope") + var ErrInvalidSelectorType = errors.New("invalid selector type") + var ErrInvalidSqlTimeout = errors.New("invalid sql timeout") + var ErrInvalidopenStatusDurationMs = errors.New("invalid OpenStatusDurationMs") + var ErrNilBreakerName = errors.New("breaker name nil") + type Namespace struct + func (n *Namespace) Close() + func (n *Namespace) GetRouter() router.Router + func (n *Namespace) Name() string + func (n *Namespace) User() string + type NamespaceManager struct + func NewNamespaceManager() *NamespaceManager + func (mgr *NamespaceManager) CommitNamespaces(nss []*config.Namespace, nss_delete []bool) error + func (mgr *NamespaceManager) Init(logger *zap.Logger, nscs []*config.Namespace, client *clientv3.Client, ...) error + func (n *NamespaceManager) Close() error + func (n *NamespaceManager) GetNamespace(nm string) (*Namespace, bool) + func (n *NamespaceManager) GetNamespaceByUser(user string) (*Namespace, bool) + func (n *NamespaceManager) RedirectConnections() []error