upstream

package
v0.0.0-...-b6e34ba Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstream

type Upstream struct {
	// contains filtered or unexported fields
}

*

  • Upstream

func New

func New(cfg config.Upstream) *Upstream

*

  • Create new Upstream based on strategy

func (*Upstream) Discover

func (this *Upstream) Discover() <-chan []core.Backend

*

  • Returns backends channel

func (*Upstream) Start

func (this *Upstream) Start()

*

  • Pull / fetch backends loop

func (*Upstream) Stop

func (this *Upstream) Stop()

*

  • Stop discovery

type UpstreamOpts

type UpstreamOpts struct {
	RetryWaitDuration time.Duration
}

*

  • Options for pull discovery

Jump to

Keyboard shortcuts

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