fixed

package
v0.0.0-...-b50c569 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

Publisher yields the same set of fixed endpoints.

func NewPublisher

func NewPublisher(endpoints []endpoint.Endpoint) *Publisher

NewPublisher returns a fixed endpoint Publisher.

func (*Publisher) Endpoints

func (p *Publisher) Endpoints() ([]endpoint.Endpoint, error)

Endpoints implements the Publisher interface.

func (*Publisher) Replace

func (p *Publisher) Replace(endpoints []endpoint.Endpoint)

Replace is a utility method to swap out the underlying endpoints of an existing fixed publisher. It's useful mostly for testing.

Jump to

Keyboard shortcuts

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