Documentation ¶
Index ¶
- func GRPCClientOptions(tlsCertificateAuthorityPath, tlsCertificatePath, tlsPrivateKey string, ...) []grpc.DialOption
- func GRPCServerOptions(mTLS bool, ...) []grpc.ServerOption
- func GenerateSelfSignedCertificate(cn string, san []string, ipAddresses []net.IP) (*tls.Certificate, error)
- func ListLocalIP() []net.IP
- func Server(config ServerConfig) *grpc.Server
- type ClientConfig
- type Dialer
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCClientOptions ¶
func GRPCClientOptions(tlsCertificateAuthorityPath, tlsCertificatePath, tlsPrivateKey string, insecureSkipVerify bool) []grpc.DialOption
func GRPCServerOptions ¶
func GRPCServerOptions(mTLS bool, tlsCertificateAuthorityPath, tlsCertificatePath, tlsPrivateKey string) []grpc.ServerOption
func ListLocalIP ¶
func Server ¶
func Server(config ServerConfig) *grpc.Server
Types ¶
type ClientConfig ¶
type Dialer ¶
type Dialer func(address string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func GRPCDialer ¶
func GRPCDialer(config ClientConfig) Dialer
Click to show internal directories.
Click to hide internal directories.