chyezh b9237280c2
enhance: wal interface definition (#33745)
issue: #33285

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-06-24 10:34:12 +08:00

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()
}