Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateEndpoints ¶ added in v0.22.0
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 ¶ added in v0.22.0
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 ¶ added in v0.27.0
UseInsecureCrypto returns true if TLS 1.2 cipher suite should not be restricted.