Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GrpcStreamer ¶
type GrpcStreamer struct { v1.UnimplementedWalStreamerServiceServer // contains filtered or unexported fields }
GrpcStreamer implements gRPC-based WalStreamerService.
func NewGrpcStreamer ¶
func NewGrpcStreamer(errGrp *errgroup.Group, storageEngines map[string]*dbkernel.Engine, dynamicTimeout time.Duration) *GrpcStreamer
NewGrpcStreamer returns an initialized GrpcStreamer that implements grpc-based WalStreamerService.
func (*GrpcStreamer) GetLatestOffset ¶
func (s *GrpcStreamer) GetLatestOffset(ctx context.Context, _ *v1.GetLatestOffsetRequest) (*v1.GetLatestOffsetResponse, error)
GetLatestOffset returns the latest wal offset of the wal for the provided namespace.
func (*GrpcStreamer) StreamWalRecords ¶
func (s *GrpcStreamer) StreamWalRecords(request *v1.StreamWalRecordsRequest, g grpc.ServerStreamingServer[v1.StreamWalRecordsResponse]) error
StreamWalRecords stream the underlying WAL record on the connection stream.
type GrpcStreamerClient ¶
type GrpcStreamerClient struct {
// contains filtered or unexported fields
}
func NewGrpcStreamerClient ¶
func NewGrpcStreamerClient(gcc *grpc.ClientConn, namespace string, wIO WalIO, offset []byte) *GrpcStreamerClient
func (*GrpcStreamerClient) GetLatestOffset ¶
GetLatestOffset returns the latest offset for the provided namespace that upstream has seen.
Click to show internal directories.
Click to hide internal directories.