grpc

package
v0.0.0-...-a39b875 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 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
}

func NewConfigServer

func NewConfigServer(config gira.GrpcConfig) (*Server, error)

func (*Server) GetServer

func (self *Server) GetServer(name string) (svr interface{}, ok bool)

func (*Server) Listen

func (self *Server) Listen() error

func (*Server) RegisterService

func (self *Server) RegisterService(desc *grpc.ServiceDesc, impl interface{})

实现接口 grpc.ServiceRegistrar 将impl保存起来,转发的时候要用到

func (*Server) Serve

func (self *Server) Serve(ctx context.Context) error

func (*Server) Stop

func (self *Server) Stop() error

Jump to

Keyboard shortcuts

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