brain

package
v0.0.0-...-f584327 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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 Server

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

Server is the KubeWharf grpc api server

func New

func New(backend b.Backend, metricCli metrics.Metrics, peerServer service.PeerService) *Server

func (*Server) Compact

func (s *Server) Compact(ctx context.Context, compactRequest *proto.CompactRequest) (*proto.CompactResponse, error)

func (*Server) Count

func (*Server) Create

func (s *Server) Create(ctx context.Context, createRequest *proto.CreateRequest) (*proto.CreateResponse, error)

func (*Server) Delete

func (s *Server) Delete(ctx context.Context, deleteRequest *proto.DeleteRequest) (*proto.DeleteResponse, error)

func (*Server) Get

func (*Server) ListPartition

func (*Server) Range

func (*Server) RangeStream

func (s *Server) RangeStream(r *proto.RangeRequest, server proto.Read_RangeStreamServer) error

func (*Server) Register

func (s *Server) Register(server *grpc.Server)

Register register kube-wharf rpc protocol server

func (*Server) Update

func (s *Server) Update(ctx context.Context, updateRequest *proto.UpdateRequest) (*proto.UpdateResponse, error)

func (*Server) Watch

func (s *Server) Watch(r *proto.WatchRequest, server proto.Watch_WatchServer) error

Jump to

Keyboard shortcuts

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