Documentation ¶
Index ¶
Constants ¶
const DefaultReconnectInterval = time.Minute
Variables ¶
This section is empty.
Functions ¶
func IterateEndpoints ¶
IterateEndpoints iterates over subsections of "grpc" section of c, wrap them into Config and passes to f.
Section names are expected to be consecutive integer numbers, starting from 0.
Panics if N is not a positive number.
Types ¶
type Config ¶
Config is a wrapper over the config section which provides access to gRPC server configurations.
type TLSConfig ¶
type TLSConfig struct {
// contains filtered or unexported fields
}
TLSConfig is a wrapper over the config section which provides access to TLS configurations of the gRPC server.
func (TLSConfig) CertificateFile ¶
CertificateFile returns the value of "certificate" config parameter.
Panics if the value is not a non-empty string.
func (TLSConfig) KeyFile ¶
KeyFile returns the value of "key" config parameter.
Panics if the value is not a non-empty string.
func (TLSConfig) UseInsecureCrypto ¶
UseInsecureCrypto returns true if TLS 1.2 cipher suite should not be restricted.