adapter

package
v0.0.0-...-07e3228 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotLeader = errors.New("not leader")

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	pb.UnimplementedRawKVServer
	pb.UnimplementedTransactionalKVServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(store store.ScanStore, coordinate *kv.Coordinate) *GRPCServer

func (GRPCServer) Commit

func (r GRPCServer) Commit(ctx context.Context, req *pb.CommitRequest) (*pb.CommitResponse, error)

func (GRPCServer) Delete

func (r GRPCServer) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error)

func (GRPCServer) Get

func (r GRPCServer) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)

func (GRPCServer) PreWrite

func (GRPCServer) Put

func (r GRPCServer) Put(ctx context.Context, req *pb.PutRequest) (*pb.PutResponse, error)

func (GRPCServer) RawDelete

func (GRPCServer) RawGet

func (r GRPCServer) RawGet(ctx context.Context, req *pb.RawGetRequest) (*pb.RawGetResponse, error)

func (GRPCServer) RawPut

func (GRPCServer) Rollback

func (GRPCServer) Scan

func (r GRPCServer) Scan(ctx context.Context, req *pb.ScanRequest) (*pb.ScanResponse, error)

type Internal

type Internal struct {
	pb.UnimplementedInternalServer
	// contains filtered or unexported fields
}

func NewInternal

func NewInternal(txm kv.Transactional, r *raft.Raft) *Internal

func (*Internal) Forward

func (i *Internal) Forward(_ context.Context, req *pb.ForwardRequest) (*pb.ForwardResponse, error)

type Node

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

type RedisServer

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

func NewRedisServer

func NewRedisServer(listen net.Listener, store store.Store, coordinate *kv.Coordinate) *RedisServer

func (*RedisServer) Run

func (r *RedisServer) Run() error

func (*RedisServer) Stop

func (r *RedisServer) Stop()

Jump to

Keyboard shortcuts

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