func NewAuth(c *Client) Auth { conn := c.ActiveConnection() return &auth{ conn: c.ActiveConnection(), remote: pb.NewAuthClient(conn), c: c, } }
func newAuthenticator(endpoint string, opts []grpc.DialOption) (*authenticator, error) { conn, err := grpc.Dial(endpoint, opts...) if err != nil { return nil, err } return &authenticator{ conn: conn, remote: pb.NewAuthClient(conn), }, nil }
// RetryAuthClient implements a AuthClient that uses the client's FailFast retry policy. func RetryAuthClient(c *Client) pb.AuthClient { return &retryAuthClient{pb.NewAuthClient(c.conn), c.retryWrapper} }