rpc

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicaHandler

type ReplicaHandler struct {
	// contains filtered or unexported fields
}

ReplicaHandler implements replica.ReplicaServiceServer interface for handling replica rpc request.

func NewReplicaHandler

func NewReplicaHandler(
	walMgr replica.WriteAheadLogManager,
) *ReplicaHandler

NewReplicaHandler creates a replica handler.

func (*ReplicaHandler) GetReplicaAckIndex

GetReplicaAckIndex returns current replica ack index.

func (*ReplicaHandler) Replica

Replica does replica request, and writes data.

func (*ReplicaHandler) Reset

Reset resets replica index.

type WriteHandler

type WriteHandler struct {
	// contains filtered or unexported fields
}

WriteHandler implements protoWriteV1.WriteServiceServer interface for handling write rpc request.

func NewWriteHandler

func NewWriteHandler(
	walMgr replica.WriteAheadLogManager,
) *WriteHandler

NewWriteHandler creates a write handler.

func (*WriteHandler) Write

Write does metric write request.

Jump to

Keyboard shortcuts

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