apicaller

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a manifold whose worker wraps an API connection made on behalf of the dependency identified by AgentName.

Types

type Connection

type Connection interface {
	base.APICaller
	Broken() <-chan struct{}
	Close() error
}

Connection includes the relevant features of a *api.State, and exists primarily so that we can patch out the openConnection function in tests (and not have to return a real *State).

type ManifoldConfig

type ManifoldConfig util.AgentManifoldConfig

ManifoldConfig defines the names of the manifolds on which a Manifold will depend.

Jump to

Keyboard shortcuts

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