LeasesService returns the underlying Leases Client
()
| 777 | |
| 778 | // LeasesService returns the underlying Leases Client |
| 779 | func (c *Client) LeasesService() leases.Manager { |
| 780 | if c.leasesService != nil { |
| 781 | return c.leasesService |
| 782 | } |
| 783 | c.connMu.Lock() |
| 784 | defer c.connMu.Unlock() |
| 785 | return leasesproxy.NewLeaseManager(leasesapi.NewLeasesClient(c.conn)) |
| 786 | } |
| 787 | |
| 788 | // HealthService returns the underlying GRPC HealthClient |
| 789 | func (c *Client) HealthService() grpc_health_v1.HealthClient { |