tls

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2022 License: Zlib Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ServerName string
	CaFile     string
	CertFile   string
	KeyFile    string
}

func (*Client) GetCredentialsByCA

func (t *Client) GetCredentialsByCA() (credentials.TransportCredentials, error)

func (*Client) GetTLSCredentials

func (t *Client) GetTLSCredentials() (credentials.TransportCredentials, error)

type Server

type Server struct {
	CaFile   string
	CertFile string
	KeyFile  string
}

func (*Server) GetCredentialsByCA

func (t *Server) GetCredentialsByCA() (credentials.TransportCredentials, error)

func (*Server) GetTLSCredentials

func (t *Server) GetTLSCredentials() (credentials.TransportCredentials, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL