mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Signed-off-by: longjiquan <jiquan.long@zilliz.com> Co-authored-by: xaxys <tpnnghd@163.com> Signed-off-by: longjiquan <jiquan.long@zilliz.com> Co-authored-by: xaxys <tpnnghd@163.com>
17 lines
321 B
Go
17 lines
321 B
Go
package msgstream
|
|
|
|
import "context"
|
|
|
|
type MockMqFactory struct {
|
|
Factory
|
|
NewMsgStreamFunc func(ctx context.Context) (MsgStream, error)
|
|
}
|
|
|
|
func NewMockMqFactory() *MockMqFactory {
|
|
return &MockMqFactory{}
|
|
}
|
|
|
|
func (m MockMqFactory) NewMsgStream(ctx context.Context) (MsgStream, error) {
|
|
return m.NewMsgStreamFunc(ctx)
|
|
}
|