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: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址