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 RetryOption ¶
func RetryOption(cfg *Config) grpc.DialOption
RetryOption gives option to reconnect to auth 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
Click to show internal directories.
Click to hide internal directories.