Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicatedUser = errors.New("duplicated user") ErrInvalidSelectorType = errors.New("invalid selector type") ErrNilBreakerName = errors.New("breaker name nil") ErrInvalidFailureRateThreshold = errors.New("invalid FailureRateThreshold") ErrInvalidopenStatusDurationMs = errors.New("invalid OpenStatusDurationMs") ErrInvalidSqlTimeout = errors.New("invalid sql timeout") ErrInvalidScope = errors.New("invalid scope") )
Functions ¶
func NewNamespaceManager ¶
func NewNamespaceManager() *namespaceManager
Types ¶
type NamespaceManager ¶
type NamespaceManager interface { Init(logger *zap.Logger, nscs []*config.Namespace, tpFetcher observer.TopologyFetcher, promFetcher metricsreader.PromInfoFetcher, httpCli *http.Client, cfgMgr *mconfig.ConfigManager, metricsReader metricsreader.MetricsReader) error CommitNamespaces(nss []*config.Namespace, nssDelete []bool) error GetNamespace(nm string) (*Namespace, bool) GetNamespaceByUser(user string) (*Namespace, bool) RedirectConnections() []error Ready() bool Close() error }
Click to show internal directories.
Click to hide internal directories.