Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialOptions ¶
func DialOptions(cfg *Config, opts ...grpc.DialOption) []grpc.DialOption
DialOptions gives options that manage TLS options, retries and exponential backoff in calls to a service
func TokenOption ¶
func TokenOption(active bool, path string) grpc.DialOption
TokenOption gives gRPC token option
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to the service using client connection
func (*Client) Connection ¶
func (c *Client) Connection() *grpc.ClientConn
Connection returns gRPC connection
type Config ¶
type Config struct { Scheme string Host string Sockets []string Balancer string Insecure bool EnvoyProxy bool WaitForReady bool Timeout int Keepalive Keepalive Retry Retry }
Config contains params to setup client connection
type Delay ¶ added in v0.1.1
Delay are the amounts of time to backoff after the first failure and the upper bound of backoff delay
Click to show internal directories.
Click to hide internal directories.