static

package
v0.0.0-...-377bbca Latest Latest
Warning

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

Go to latest
Published: Aug 19, 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 static endpoints.

func NewPublisher

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

NewPublisher returns a static 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 static 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