mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 06:55:27 +08:00
Related to #39095 https://go.dev/doc/modules/version-numbers Update pkg version according to golang dep version convention --------- Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
22 lines
472 B
Go
22 lines
472 B
Go
package walimpls
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/pkg/v2/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()
|
|
}
|