Documentation ¶
Overview ¶
Package meta provides tool for reading metadata from services declaring "MetaProvider" support
Index ¶
- Constants
- type Loader
- type MetaProviderCloser
- type NamespacesProvider
- func (p *NamespacesProvider) Clear()
- func (p *NamespacesProvider) CloseStreamers() error
- func (p *NamespacesProvider) ExcludeIndexes() map[string]struct{}
- func (p *NamespacesProvider) InitStreamers(ctx context.Context) error
- func (p *NamespacesProvider) Load()
- func (p *NamespacesProvider) Namespaces() map[string]*idm.UserMetaNamespace
- func (p *NamespacesProvider) ReadNode(node *tree.Node) (*tree.Node, error)
- func (p *NamespacesProvider) Watch()
- type StreamLoader
Constants ¶
View Source
const ( ServiceMetaProvider = "MetaProvider" ServiceMetaNsProvider = "MetaNsProvider" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
func NewStreamLoader ¶
type MetaProviderCloser ¶
type MetaProviderCloser func() error
type NamespacesProvider ¶ added in v1.5.0
type NamespacesProvider struct { sync.RWMutex // this handles a lock for the namespaces field // contains filtered or unexported fields }
NamespaceProvider list all namespaces info from services declared ServiceMetaNsProvider It watches events to maintain the list
func NewNamespacesProvider ¶ added in v1.5.0
func NewNamespacesProvider() *NamespacesProvider
func (*NamespacesProvider) Clear ¶ added in v1.5.0
func (p *NamespacesProvider) Clear()
func (*NamespacesProvider) CloseStreamers ¶ added in v1.5.0
func (p *NamespacesProvider) CloseStreamers() error
func (*NamespacesProvider) ExcludeIndexes ¶ added in v1.5.0
func (p *NamespacesProvider) ExcludeIndexes() map[string]struct{}
func (*NamespacesProvider) InitStreamers ¶ added in v1.5.0
func (p *NamespacesProvider) InitStreamers(ctx context.Context) error
func (*NamespacesProvider) Load ¶ added in v1.5.0
func (p *NamespacesProvider) Load()
func (*NamespacesProvider) Namespaces ¶ added in v1.5.0
func (p *NamespacesProvider) Namespaces() map[string]*idm.UserMetaNamespace
func (*NamespacesProvider) Watch ¶ added in v1.5.0
func (p *NamespacesProvider) Watch()
type StreamLoader ¶
type StreamLoader struct {
// contains filtered or unexported fields
}
func (*StreamLoader) Close ¶
func (l *StreamLoader) Close() error
Click to show internal directories.
Click to hide internal directories.