Documentation ¶
Index ¶
- func Connect(endpoint string, tlsConfig *tls.Config, timeout time.Duration) (*grpc.ClientConn, error)
- func LoadClientTLS(caFile, certFile, keyFile, peerName string) (*tls.Config, error)
- func LoadServerTLS(caFile, certFile, keyFile, peerName string) (*tls.Config, error)
- func NewServer(endpoint string, tlsConfig *tls.Config) (*grpc.Server, net.Listener, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(endpoint string, tlsConfig *tls.Config, timeout time.Duration) (*grpc.ClientConn, error)
Connect is a helper function to initiate a grpc client connection to server running at endpoint using tlsConfig
func LoadClientTLS ¶
LoadClientTLS prepares the TLS configuration that can be used by a client while connecting to a server. peerName must be provided when expecting the server to offer a certificate with that CommonName
func LoadServerTLS ¶
LoadServerTLS prepares the TLS configuration needed for a server with the given certificate files
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.