signaller

package
v0.2.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal struct {
	Request *http.Request
	Attempt int
}

type Signaller

type Signaller struct {
	Address        string
	Port           int
	WorkersCount   int
	MaxRetries     int
	RetryBackoff   time.Duration
	EndpointScheme string
	// contains filtered or unexported fields
}

func NewSignaller

func NewSignaller(
	address string,
	port int,
	workersCount int,
	maxRetries int,
	retryBackoff time.Duration,
) *Signaller

func (*Signaller) GetErrors

func (b *Signaller) GetErrors() chan error

func (*Signaller) ProcessSignalQueue

func (b *Signaller) ProcessSignalQueue()

func (*Signaller) Retry

func (b *Signaller) Retry(signal Signal)

func (*Signaller) Run

func (b *Signaller) Run() error

func (*Signaller) ServeHTTP

func (b *Signaller) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Signaller) SetEndpoints

func (b *Signaller) SetEndpoints(e *watcher.EndpointConfig)

Jump to

Keyboard shortcuts

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