Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidScheme = errors.New("unsupported URL scheme")
ErrInvalidScheme is returned when provided URL has an unsupported scheme. Supported schemes are "grpc" or "grpc+tls".
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper around gRPC connection that implements StarterStopper and Healthcheck interfaces.
func (*Client) Conn ¶
func (c *Client) Conn() (*grpc.ClientConn, error)
Conn checks the underlying gRPC client connection for readiness and returns it. If connection is not established or is not ready, an error is returned instead.
Click to show internal directories.
Click to hide internal directories.