mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
This PR implements a new CDC service for Milvus 2.6, providing log-based cross-cluster replication. issue: https://github.com/milvus-io/milvus/issues/44123 --------- Signed-off-by: bigsheeper <yihao.dai@zilliz.com> Signed-off-by: chyezh <chyezh@outlook.com> Co-authored-by: chyezh <chyezh@outlook.com>
29 lines
689 B
Go
29 lines
689 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package walimplstest
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/pkg/v2/streaming/util/message"
|
|
"github.com/milvus-io/milvus/pkg/v2/streaming/walimpls"
|
|
"github.com/milvus-io/milvus/pkg/v2/streaming/walimpls/registry"
|
|
)
|
|
|
|
func init() {
|
|
// register the builder to the registry.
|
|
registry.RegisterBuilder(&openerBuilder{})
|
|
message.RegisterMessageIDUnmsarshaler(message.WALNameTest, UnmarshalTestMessageID)
|
|
}
|
|
|
|
var _ walimpls.OpenerBuilderImpls = &openerBuilder{}
|
|
|
|
type openerBuilder struct{}
|
|
|
|
func (o *openerBuilder) Name() message.WALName {
|
|
return message.WALNameTest
|
|
}
|
|
|
|
func (o *openerBuilder) Build() (walimpls.OpenerImpls, error) {
|
|
return &opener{}, nil
|
|
}
|