Documentation ¶ Index ¶ type Client func NewClient(clientName string, clientId string, remoteIP string, remotePort int32) *Client func (c *Client) Start() func (c *Client) Stop() type Server func NewServer() *Server func (s *Server) GetHost() string func (s *Server) GetName() string func (s *Server) GetPort() int32 func (s *Server) Run() func (s *Server) Start() func (s *Server) Stop() 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() Source Files ¶ View all Source files grpc_client.go grpc_server.go Click to show internal directories. Click to hide internal directories.