worker

package
v1.3.33 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerNode

type WorkerNode struct {
	ApiBase    string
	Srvr       types.APIServerInterface
	ServerAddr string
	DebugMode  bool
	C          types.APIClientInterface

	ConnTracker *connection.Tracker
	// contains filtered or unexported fields
}

func (WorkerNode) GetItem

func (w WorkerNode) GetItem(ctx context.Context) (interface{}, error)

func (WorkerNode) Process

func (w WorkerNode) Process(ctx context.Context, item interface{}) (interface{}, error)

func (WorkerNode) SubmitResult

func (w WorkerNode) SubmitResult(ctx context.Context, result interface{}) error

Jump to

Keyboard shortcuts

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