service

package
v0.0.56 Latest Latest
Warning

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

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

Documentation

Overview

Package service manages the main logic of server.

Package service manages the main logic of server.

Package service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(r *replicator) error

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithName

func WithName(name string) Option

func WithNamespace

func WithNamespace(ns string) Option

func WithRecoverCheckDuration

func WithRecoverCheckDuration(dur string) Option

type Replicator

type Replicator interface {
	Start(context.Context) (<-chan error, error)
	GetCurrentPodIPs() ([]string, bool)
}

func New

func New(opts ...Option) (rp Replicator, err error)

Jump to

Keyboard shortcuts

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