You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package corrpc
-
- import (
- "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
- "google.golang.org/grpc"
- )
-
- type Client struct {
- con *grpc.ClientConn
- cli CoordinatorClient
- pool *Pool
- fusedErr *rpc.CodeError
- }
-
- func (c *Client) Release() {
- if c.con != nil {
- c.pool.release()
- }
- }
-
- // 客户端的API要和服务端的API保持一致
- var _ CoordinatorAPI = (*Client)(nil)
|