streamer

package
v0.0.0-...-3017044 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetrics

func RegisterMetrics()

RegisterMetrics registers the Prometheus metrics.

Types

type GrpcStreamer

type GrpcStreamer struct {
	v1.UnimplementedWALReplicationServiceServer
	// contains filtered or unexported fields
}

GrpcStreamer implements gRPC-based WALReplicationService.

func NewGrpcStreamer

func NewGrpcStreamer(errGrp *errgroup.Group, storageEngines map[string]*dbengine.Engine, dynamicTimeout time.Duration) *GrpcStreamer

func (*GrpcStreamer) StreamWAL

StreamWAL 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) StreamWAL

func (c *GrpcStreamerClient) StreamWAL(ctx context.Context) error

type WalIO

type WalIO interface {
	Write(data *v1.WALRecord) error
}

WalIO provide.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL