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.
Source Files
¶
- registry_api.go
- registry_impl.go
Click to show internal directories.
Click to hide internal directories.