service

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package service manages the main logic of server.

Package service

Package service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer added in v0.0.5

type Indexer interface {
	Start(ctx context.Context) (<-chan error, error)
	NumberOfUUIDs() uint32
	NumberOfUncommittedUUIDs() uint32
	IsIndexing() bool
}

func New added in v0.0.5

func New(opts ...Option) (idx Indexer, err error)

type Option added in v0.0.5

type Option func(i *index) error

func WithCreationPoolSize added in v0.0.27

func WithCreationPoolSize(size uint32) Option

func WithDiscoverer added in v0.0.9

func WithDiscoverer(c discoverer.Client) Option

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithIndexingConcurrency added in v0.0.5

func WithIndexingConcurrency(c int) Option

func WithIndexingDuration added in v0.0.5

func WithIndexingDuration(dur string) Option

func WithIndexingDurationLimit added in v0.0.5

func WithIndexingDurationLimit(dur string) Option

func WithMinUncommitted added in v0.0.7

func WithMinUncommitted(n uint32) Option

Jump to

Keyboard shortcuts

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