registry

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 3 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 dump-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