Documentation ¶
Overview ¶
Package index implements Service to map indizes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Service ¶
type Service interface { Boot() Create(namespace, namespaceA, namespaceB, valueA, valueB string) error Delete(namespace, namespaceA, namespaceB, valueA string) error Exists(namespace, namespaceA, namespaceB, valueA string) (bool, error) Search(namespace, namespaceA, namespaceB, valueA string) (string, error) Shutdown() Update(namespace, namespaceA, namespaceB, valueA, valueB string) error }
func NewService ¶
func NewService(config ServiceConfig) (Service, error)
NewService creates a new index service.
type ServiceConfig ¶
type ServiceConfig struct { // Dependencies. StorageCollection *storage.Collection }
ConfigService represents the configuration used to create a new index service.
func DefaultServiceConfig ¶
func DefaultServiceConfig() ServiceConfig
DefaultConfig provides a default configuration to create a new index service by best effort.
Click to show internal directories.
Click to hide internal directories.