[skip ci]Add comments in chap04_message_stream.md (#11289)

Signed-off-by: ruiyi.jiang <ruiyi.jiang@zilliz.com>
pull/11310/head
ryjiang 2021-11-05 13:22:17 +08:00 committed by GitHub
parent 6149c49e06
commit 4043701a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ type RepackFunc func(msgs []TsMsg, hashKeys [][]int32) (map[int32]*MsgPack, erro
// Interface
type UnmarshalFunc func(interface{}) (TsMsg, error)
// UnmarshalDispatcher is an interface contains method Unmarshal
type UnmarshalDispatcher interface {
Unmarshal(input interface{}, msgType commonpb.MsgType) (TsMsg, error)
AddMsgTemplate(msgType commonpb.MsgType, unmarshalFunc UnmarshalFunc)