worker

package
v0.0.0-...-47efce2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker is the wrapper handler fo interacting with worker

func New

func New(addr string, id string) (*Worker, error)

New creates a worker handler

func (*Worker) CallFunction

func (w *Worker) CallFunction(ctx context.Context, funcName string, args []byte) ([]byte, error)

CallFunction

func (*Worker) HasFunction

func (w *Worker) HasFunction(funcName string) bool

HasFunction

func (*Worker) InitFunction

func (w *Worker) InitFunction(ctx context.Context, funcName string, image string, codeURI string) error

InitFunction initialise an instance of the given function

Jump to

Keyboard shortcuts

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