async

package
v0.0.0-...-3a513bd Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "v0.0.0 -- HEAD"
)

Variables

View Source
var (
	ErrNoIPv4Found         = errors.New("cannot find ipv4 address")
	ErrInterfaceNotUP      = errors.New("interface is not UP")
	ErrInterfaceIsLoopback = errors.New("interface is loopback")
)

Functions

func Func

func Func(name string, fun Function)

func Run

func Run() error

Types

type Engine

type Engine struct {
	sync.RWMutex
	// contains filtered or unexported fields
}
var (
	DefaultEngine *Engine

	ErrCannotConnect = errors.New("cannot connect to server")
)

func NewEngine

func NewEngine(id, bind, advertiseAddr, serverAddr string, workerCount int32) *Engine

func (*Engine) Exec

func (*Engine) Func

func (e *Engine) Func(name string, fun Function)

func (*Engine) Info

func (*Engine) Run

func (e *Engine) Run() error

type Function

type Function func(context.Context) error

Jump to

Keyboard shortcuts

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