failover

package
v0.0.0-...-681de73 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCheckHostFail ...
	ErrCheckHostFail = errors.New("check host failed")
	// ErrTerminate ...
	ErrTerminate = errors.New("terminate")
	// ErrServerNotFound ...
	ErrServerNotFound = errors.New("server not found")
)

Functions

This section is empty.

Types

type Failover

type Failover struct {
	*config.Config
	// contains filtered or unexported fields
}

Failover ...

func NewFailover

func NewFailover(cfg *config.Config, transporter transporter, metric promwrap.Interface) *Failover

NewFailover ...

func (*Failover) Start

func (s *Failover) Start(doneCtx context.Context) error

Start ...

Jump to

Keyboard shortcuts

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