slave

package
v0.0.0-...-e6af7e3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2016 License: LGPL-3.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCloudHosts     = errors.New("no cloud hosts")
	ErrResolvingTimeout = errors.New("timed out")
	ErrAppUnavailable   = errors.New("application is unavailable")
)
View Source
var ErrTimeout = errors.New("operation timed out")

Functions

This section is empty.

Types

type AsyncResult

type AsyncResult interface {
	Wait(ctx context.Context, result interface{}) error
}

type Resolver

type Resolver interface {
	Resolve(ctx context.Context, name string) (Slave, error)
	Close()
}

func NewCocaineResolver

func NewCocaineResolver(d discovery.Discovery) Resolver

func NewLocalResolver

func NewLocalResolver() Resolver

type Slave

type Slave interface {
	Close()
	Endpoint() string
	Do(name string, args ...interface{}) AsyncResult
}

func NewSlave

func NewSlave(app *cocaine.Service) Slave

Jump to

Keyboard shortcuts

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