grpc

package
v0.0.0-...-fdb8233 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

func Stop

func Stop()

Types

type GreeterServer

type GreeterServer struct {
	pb.UnimplementedGreeterServer
	// contains filtered or unexported fields
}

func (*GreeterServer) SayHello

func (s *GreeterServer) SayHello(ctx context.Context, req *pb.HelloReq) (*pb.HelloResp, error)

type LogErrorHandler

type LogErrorHandler struct {
}

func NewLogErrorHandler

func NewLogErrorHandler() *LogErrorHandler

func (*LogErrorHandler) Handle

func (h *LogErrorHandler) Handle(ctx context.Context, err error)

type RegisterHandler

type RegisterHandler func(grpcServer *grpc.Server)

type Server

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

func NewServer

func NewServer() *Server

func (*Server) RegisterServer

func (s *Server) RegisterServer(rh RegisterHandler) *Server

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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