codec

package
v1.2.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	// Name returns codec name.
	Name() string

	// Execute sends message to worker and waits for the response.
	Execute(ctx *internal.Context, msg ...*internal.Message) ([]*internal.Message, error)

	// FetchWorkerInfo sends message to the worker with GetWorkerInfo payload (ID=0), this should be the first call to the PHP-SDK
	FetchWorkerInfo(workerInfo *[]*internal.WorkerInfo) error
}

Codec manages payload encoding and decoding while communication with underlying worker.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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