proto

package
v4.4.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 9 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 struct {
	// contains filtered or unexported fields
}

Codec uses protobuf to exchange messages with underlying workers.

func NewCodec

func NewCodec(log *zap.Logger, dc converter.DataConverter) *Codec

NewCodec creates new Proto communication Codec.

func (*Codec) Decode

func (c *Codec) Decode(pld *payload.Payload, result *[]*internal.Message) error

func (*Codec) DecodeWorkerInfo

func (c *Codec) DecodeWorkerInfo(p *payload.Payload, wi *[]*internal.WorkerInfo) error

DecodeWorkerInfo ... info []*internal.Message is read-only wi *[]*internal.WorkerInfo should be pre-allocated

func (*Codec) Encode

func (c *Codec) Encode(ctx *internal.Context, p *payload.Payload, msg ...*internal.Message) error

Jump to

Keyboard shortcuts

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