namespace

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

This section is empty.

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

func (*Namespace) Close

func (n *Namespace) Close()

func (*Namespace) GetRouter

func (n *Namespace) GetRouter() router.Router

func (*Namespace) Name

func (n *Namespace) Name() string

func (*Namespace) User

func (n *Namespace) User() string

type NamespaceManager

type NamespaceManager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewNamespaceManager

func NewNamespaceManager() *NamespaceManager

func (*NamespaceManager) Close

func (n *NamespaceManager) Close() error

func (*NamespaceManager) CommitNamespaces

func (mgr *NamespaceManager) CommitNamespaces(nss []*config.Namespace, nss_delete []bool) error

func (*NamespaceManager) GetNamespace

func (n *NamespaceManager) GetNamespace(nm string) (*Namespace, bool)

func (*NamespaceManager) GetNamespaceByUser

func (n *NamespaceManager) GetNamespaceByUser(user string) (*Namespace, bool)

func (*NamespaceManager) Init

func (mgr *NamespaceManager) Init(logger *zap.Logger, nscs []*config.Namespace, tpFetcher router.TopologyFetcher, httpCli *http.Client) error

func (*NamespaceManager) RedirectConnections

func (n *NamespaceManager) RedirectConnections() []error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL