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.
Click to show internal directories.
Click to hide internal directories.