Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { CertPath string `yaml:"tls_cert_path"` KeyPath string `yaml:"tls_key_path"` CAPath string `yaml:"tls_ca_path"` ServerName string `yaml:"tls_server_name"` InsecureSkipVerify bool `yaml:"tls_insecure_skip_verify"` }
ClientConfig is the config for client TLS.
func (*ClientConfig) GetGRPCDialOptions ¶
func (cfg *ClientConfig) GetGRPCDialOptions(enabled bool) ([]grpc.DialOption, error)
GetGRPCDialOptions creates GRPC DialOptions for TLS
func (*ClientConfig) GetTLSConfig ¶
func (p *ClientConfig) GetTLSConfig() (*tls.Config, error)
GetTLSConfig initialises tls.Config from config options
Click to show internal directories.
Click to hide internal directories.