mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 18:02:08 +08:00
22 lines
478 B
Go
22 lines
478 B
Go
package walimpls
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/milvus-io/milvus/internal/proto/streamingpb"
|
|
)
|
|
|
|
// OpenOption is the option for allocating wal impls instance.
|
|
type OpenOption struct {
|
|
Channel *streamingpb.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()
|
|
}
|