Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartClient ¶
func StartClient(ip, port string) (conn *grpc.ClientConn, err error)
StartClient 创建grpc客户端
func StartServer ¶
StartServer 启动grpc服务 并注册服务
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddService ¶
func (c *Client) AddService(regClient func(c *grpc.ClientConn))
func (*Client) GetClient ¶
func (c *Client) GetClient() *grpc.ClientConn
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server Server
func (*Server) AddService ¶
AddService 注册服务。。。
Click to show internal directories.
Click to hide internal directories.