protobuf

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

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller

type Marshaller interface {
	Marshal(messageType int, messageSubType string, payload []byte) ([]byte, error)
	Unmarshal(messageType string, protobufPayload string) ([]byte, error)
}

Marshaller is an interface for marshalling/unmarshalling C2D & D2C messages to/from protobuf message payload.

func NewProtobufJSONMarshaller

func NewProtobufJSONMarshaller(mapperConfig *config.MessageMapperConfig) Marshaller

NewProtobufJSONMarshaller creates a protobuf marshaller instance.

Jump to

Keyboard shortcuts

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