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)
// QueueSize shows the number of requests waiting for the worker
QueueSize() uint64
// 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.
Click to show internal directories.
Click to hide internal directories.