Documentation ¶
Index ¶
- type Credentials
- func (c *Credentials) ClientHandshake(ctx context.Context, authority string, conn net.Conn) (net.Conn, credentials.AuthInfo, error)
- func (c *Credentials) Clone() credentials.TransportCredentials
- func (c *Credentials) Info() credentials.ProtocolInfo
- func (c *Credentials) OverrideServerName(host string) error
- func (c *Credentials) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)
- type Info
- type Protocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
func NewCredentials ¶
func NewCredentials(host string, protocols ...Protocol) *Credentials
func (*Credentials) ClientHandshake ¶
func (*Credentials) Clone ¶
func (c *Credentials) Clone() credentials.TransportCredentials
func (*Credentials) Info ¶
func (c *Credentials) Info() credentials.ProtocolInfo
func (*Credentials) OverrideServerName ¶
func (c *Credentials) OverrideServerName(host string) error
func (*Credentials) ServerHandshake ¶
func (c *Credentials) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)
Directories ¶
Path | Synopsis |
---|---|
Package ed25519 implements the Ed25519 signature algorithm.
|
Package ed25519 implements the Ed25519 signature algorithm. |
examples
|
|
Click to show internal directories.
Click to hide internal directories.