worker

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package worker is a facade for the circuit spawning mechanism module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(v commander)

Bind is used internally to bind an implementation of this package to the public methods of this package

func Kill

func Kill(addr n.Addr) error

Kill kills the circuit worker with the given addr

func Spawn

func Spawn(host Host, anchors ...string) (n.Addr, error)

Spawn starts a new worker process on host and registers it under the given anchors directories in the anchor file system. On success, Spawn returns the address of the new work. Spawn is a low-level function. The spawned worker will wait idle for further interaction. It is the caller's responsibility to manage the lifespan of the newworker.

Types

type Host

type Host interface{}

Host is a location where a new worker can be executed.

Jump to

Keyboard shortcuts

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