rpc

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(server string) (client *grpc.ClientConn, err error)

NewClient return a new rpc client

NewClient("192.168.0.1:1234")

Types

type Server

type Server struct {
	Listener net.Listener
	Server   *grpc.Server
	Port     int //端口
}

Server GRPCServer

func NewServer

func NewServer(port int) (server *Server, err error)

NewServer return a server

func (*Server) Run

func (m *Server) Run()

Run run rpc server

Jump to

Keyboard shortcuts

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