Documentation
¶
Index ¶
- Constants
- func Decode(method EncodeMethod, msgBody []byte, msg proto.Message) (err error)
- func DecodeFSMContext(b []byte, ctx proto.Message) error
- func DecodeMsgBodyFromMQ(msgBody []byte, msg proto.Message) error
- func Encode(method EncodeMethod, msg proto.Message) (b []byte, err error)
- func EncodeFSMContext(ctx proto.Message) ([]byte, error)
- func EncodeMsgBodyForMQ(msg proto.Message) ([]byte, error)
- type EncodeMethod
Constants ¶
View Source
const ( WithPB = EncodeMethod("protobuf") WithJSON = EncodeMethod("json") // 不会缺省“零值”字段 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncodeMethod ¶
type EncodeMethod string
Click to show internal directories.
Click to hide internal directories.