github.com/glide-im/glide@v1.6.0/im_service/client/gateway_rpc_client.go (about) 1 package client 2 3 import ( 4 "context" 5 "github.com/glide-im/glide/im_service/proto" 6 "github.com/glide-im/glide/im_service/server" 7 "github.com/glide-im/glide/pkg/rpc" 8 ) 9 10 var _ server.GatewayRpcServer = &GatewayRpcClient{} 11 12 type GatewayRpcClient struct { 13 cli *rpc.BaseClient 14 } 15 16 func (I *GatewayRpcClient) UpdateClient(ctx context.Context, request *proto.UpdateClient, response *proto.Response) error { 17 return I.cli.Call(ctx, "UpdateClient", request, response) 18 } 19 20 func (I *GatewayRpcClient) EnqueueMessage(ctx context.Context, request *proto.EnqueueMessageRequest, response *proto.Response) error { 21 return I.cli.Call(ctx, "EnqueueMessage", request, response) 22 }