File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
package client
2
2
3
3
import (
4
+ "crypto/tls"
5
+ "fmt"
6
+
7
+ "buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/admin/v1/adminv1grpc"
4
8
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/auth/v1/authv1grpc"
5
9
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/cloud/v1/cloudv1grpc"
6
10
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/metadata/v1/metadatav1grpc"
7
11
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/network/v1/networkv1grpc"
8
12
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/payment/v1/paymentv1grpc"
9
- "crypto/tls"
10
- "fmt"
11
13
"google.golang.org/grpc/credentials"
12
14
13
15
"google.golang.org/grpc"
@@ -21,6 +23,11 @@ type Client struct {
21
23
22
24
type EndpointOverrideOption string
23
25
26
+ // AdminClient Returns the AdminServiceClient
27
+ func (c * Client ) AdminClient () adminv1grpc.AdminServiceClient {
28
+ return adminv1grpc .NewAdminServiceClient (c .grpcClient )
29
+ }
30
+
24
31
// CloudClient Returns the CloudServiceClient
25
32
func (c * Client ) CloudClient () cloudv1grpc.CloudServiceClient {
26
33
return cloudv1grpc .NewCloudServiceClient (c .grpcClient )
You can’t perform that action at this time.
0 commit comments