registry

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	// RegisterDescriptor add new descriptor into the registry.
	RegisterDescriptor(descriptor *KVDescriptor)

	// GetAllDescriptors returns all registered descriptors ordered by retrieve-dependencies.
	GetAllDescriptors() []*KVDescriptor

	// GetDescriptor returns descriptor with the given name.
	GetDescriptor(name string) *KVDescriptor

	// GetDescriptorForKey returns descriptor handling the given key.
	GetDescriptorForKey(key string) *KVDescriptor
}

Registry can be used to register all descriptors and get quick (cached, O(log)) lookups by keys.

func NewRegistry

func NewRegistry() Registry

NewRegistry creates a new instance of registry.

Jump to

Keyboard shortcuts

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