Documentation ¶
Index ¶
- func DecodeCRTs(key []byte) uint64
- func DecodeKey(key []byte) (uniqueID uint32, tableID uint64, startTs, CRTs uint64)
- func EncodeKey(uniqueID uint32, tableID uint64, event *model.PolymorphicEvent) []byte
- func EncodeTsKey(uniqueID uint32, tableID uint64, CRTs uint64, startTs ...uint64) []byte
- type MsgPackGenSerde
- type SerializerDeserializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MsgPackGenSerde ¶
type MsgPackGenSerde struct{}
MsgPackGenSerde encodes model.PolymorphicEvent into bytes and decodes model.PolymorphicEvent from bytes.
func (*MsgPackGenSerde) Marshal ¶
func (m *MsgPackGenSerde) Marshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error)
Marshal encodes model.PolymorphicEvent into bytes.
func (*MsgPackGenSerde) Unmarshal ¶
func (m *MsgPackGenSerde) Unmarshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error)
Unmarshal decodes model.PolymorphicEvent from bytes.
type SerializerDeserializer ¶
type SerializerDeserializer interface { Marshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error) Unmarshal(event *model.PolymorphicEvent, bytes []byte) ([]byte, error) }
SerializerDeserializer is the interface encodes and decodes model.PolymorphicEvent.
Click to show internal directories.
Click to hide internal directories.