service

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 18 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)
	UUIDs(context.Context) []string
	UncommittedUUIDs() []string
	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 WithAgentName

func WithAgentName(name string) Option

func WithAgentOptions

func WithAgentOptions(opts ...grpc.Option) Option

func WithAgentPort

func WithAgentPort(port int) Option

func WithAgentServiceDNSARecord

func WithAgentServiceDNSARecord(a string) Option

func WithDiscoverDuration

func WithDiscoverDuration(dur string) Option

func WithDiscovererAddr

func WithDiscovererAddr(addr string) Option

func WithDiscovererClient

func WithDiscovererClient(client grpc.Client) Option

func WithDiscovererHostPort

func WithDiscovererHostPort(host string, port int) 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

Jump to

Keyboard shortcuts

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