chyezh dfe0416a70
enhance: implement streaming node server service (#34166)
issue: #33285

- implement producing and consuming server of message
- implement management operation for streaming node server

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-07-09 07:58:14 +08:00

27 lines
656 B
Go

package walimpls
import (
"context"
"github.com/milvus-io/milvus/pkg/streaming/util/message"
"github.com/milvus-io/milvus/pkg/streaming/util/types"
)
type WALImpls interface {
// WALName returns the name of the wal.
WALName() string
// Channel returns the channel assignment info of the wal.
// Should be read-only.
Channel() types.PChannelInfo
// Append writes a record to the log.
Append(ctx context.Context, msg message.MutableMessage) (message.MessageID, error)
// Read returns a scanner for reading records from the wal.
Read(ctx context.Context, opts ReadOption) (ScannerImpls, error)
// Close closes the wal instance.
Close()
}