gtls

package
v0.0.0-...-0f68708 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 5 Imported by: 24

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