rpc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr           string
	WriteBufSize   int
	ReadBufSize    int
	MaxRecvMsgSize int
	MaxSendMsgSize int
	Reflection     bool
}

type HandlerFn

type HandlerFn func(srv *grpc.Server)

type Option

type Option struct {
	Config

	ServiceOpts []grpc.ServerOption
}

type Server

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

func New

func New(opt Option) *Server

func (*Server) Handler

func (s *Server) Handler(handler HandlerFn)

func (*Server) Run

func (s *Server) Run() error

func (*Server) Shutdown

func (s *Server) Shutdown() error

Jump to

Keyboard shortcuts

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