grpc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientConn *grpc.ClientConn
}

func NewGrpcClient

func NewGrpcClient(name string, port string) *Client

func (Client) Close

func (gc Client) Close()

type ResisterCallBack

type ResisterCallBack func() (s *Server)

type Server

type Server struct {
	Server *grpc.Server
}

func NewServer

func NewServer() *Server

func (*Server) Service

func (gs *Server) Service(name string, port string, registerFunc ResisterCallBack)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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