index

package module
v0.0.0-...-05641d5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2017 License: BSD-3-Clause Imports: 5 Imported by: 3

README

maturity build status GoDoc

index

The index package implements a service to map indizes.

Documentation

Overview

Package index implements Service to map indizes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

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.

Jump to

Keyboard shortcuts

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