server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(cfg *ServerConfig) error

start rpc server

Types

type Server

type Server struct {
	pb.UnimplementedDataNodeServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *ServerConfig) *Server

func (*Server) Delete added in v0.3.0

func (s *Server) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error)

func (*Server) Get

func (s *Server) Get(req *pb.GetRequset, stream pb.DataNode_GetServer) error

func (*Server) Put

func (s *Server) Put(stream pb.DataNode_PutServer) error

type ServerConfig added in v1.0.0

type ServerConfig struct {
	IP            string
	Port          string
	StoragePath   string
	NamenodeAddr  string
	HeartBeatTime int
}

Jump to

Keyboard shortcuts

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