Documentation ¶
Index ¶
- Constants
- func DataMapToPB(data map[string]interface{}) (map[string]*types.Any, error)
- func DecodeMsgFromPB(pbmsg *msgpb.Msg) (*core.Msg, error)
- func DecodeMsgHeaderFromPB(pbmsg *msgpb.Msg) (*core.Msg, error)
- func EncodeMsgHeaderToPB(msg *core.Msg) (*msgpb.Msg, error)
- func EncodeMsgToPB(msg *core.Msg) (*msgpb.Msg, error)
- func InterfaceValueToPB(v interface{}) (*types.Any, error)
- func PBToDataMap(data map[string]*types.Any) (map[string]interface{}, error)
- func PbToInterface(v *types.Any) (interface{}, error)
- type DDLJson_2_0
- type DDLMsg_0_1
- type DmlJson_2_0
- type DmlStringMsg_0_1
- type Encoder
- type JsonMsg01
- type JsonMsgVersion20
- type MysqlJson_0_1_header
- type MysqlJson_2_0_header
Constants ¶
View Source
const ( Version01 = "0.1" Version20Alpha = "2.0.alpha" )
Variables ¶
This section is empty.
Functions ¶
func DataMapToPB ¶ added in v0.9.22
func DecodeMsgHeaderFromPB ¶ added in v0.9.22
func EncodeMsgHeaderToPB ¶ added in v0.9.22
func InterfaceValueToPB ¶ added in v0.9.22
func PBToDataMap ¶ added in v0.9.22
func PbToInterface ¶ added in v0.9.22
Types ¶
type DDLJson_2_0 ¶
type DDLJson_2_0 struct { MysqlJson_2_0_header SQL string `json:"sql"` }
type DDLMsg_0_1 ¶
type DDLMsg_0_1 struct { MysqlJson_0_1_header SQL string `json:"sql"` }
type DmlJson_2_0 ¶
type DmlJson_2_0 struct { MysqlJson_2_0_header Data map[string]interface{} Old map[string]interface{} Pks map[string]interface{} }
type DmlStringMsg_0_1 ¶
type Encoder ¶
type Encoder interface { Serialize(msg *core.Msg, version string) ([]byte, error) Deserialize(b []byte) (core.Msg, error) }
func NewEncoder ¶
type JsonMsgVersion20 ¶
Click to show internal directories.
Click to hide internal directories.