grpc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientName string, clientId string, remoteIP string, remotePort int32) *Client

func (*Client) Start

func (c *Client) Start()

func (*Client) Stop

func (c *Client) Stop()

type Server

type Server struct {
	Server *grpc.Server // GRPC服务器
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) GetHost

func (s *Server) GetHost() string

GetHost 获取服务器IP地址

func (*Server) GetName

func (s *Server) GetName() string

GetName 获取服务器名称

func (*Server) GetPort

func (s *Server) GetPort() int32

GetPort 获取服务器端口

func (*Server) Run

func (s *Server) Run()

func (*Server) Start

func (s *Server) Start()

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