mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
d2bc4a53be
issue: #33285 - use reader but not consumer for pulsar - advanced test framework - move some streaming related package into pkg --------- Signed-off-by: chyezh <chyezh@outlook.com>
22 lines
469 B
Go
22 lines
469 B
Go
package walimpls
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/pkg/streaming/util/types"
|
|
)
|
|
|
|
// OpenOption is the option for allocating wal impls instance.
|
|
type OpenOption struct {
|
|
Channel types.PChannelInfo // Channel to open.
|
|
}
|
|
|
|
// OpenerImpls is the interface for build WALImpls instance.
|
|
type OpenerImpls interface {
|
|
// Open open a WALImpls instance.
|
|
Open(ctx context.Context, opt *OpenOption) (WALImpls, error)
|
|
|
|
// Close release the resources.
|
|
Close()
|
|
}
|