Documentation ¶
Index ¶
- type Auth
- type Authenticator
- func (a *Authenticator) ClientHandshake(ctx context.Context, addr string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)
- func (a *Authenticator) Clone() credentials.TransportCredentials
- func (a *Authenticator) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
- func (a *Authenticator) Info() credentials.ProtocolInfo
- func (a *Authenticator) OverrideServerName(_ string) error
- func (a *Authenticator) RequireTransportSecurity() bool
- func (a *Authenticator) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
PeerPub *[ed25519.PublicKeySize]byte
}
type Authenticator ¶
type Authenticator struct { Config func() (*tls.Config, error) PeerPub *[ed25519.PublicKeySize]byte }
func (*Authenticator) ClientHandshake ¶
func (*Authenticator) Clone ¶
func (a *Authenticator) Clone() credentials.TransportCredentials
func (*Authenticator) GetRequestMetadata ¶
func (*Authenticator) Info ¶
func (a *Authenticator) Info() credentials.ProtocolInfo
func (*Authenticator) OverrideServerName ¶
func (a *Authenticator) OverrideServerName(_ string) error
func (*Authenticator) RequireTransportSecurity ¶
func (a *Authenticator) RequireTransportSecurity() bool
func (*Authenticator) ServerHandshake ¶
func (a *Authenticator) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)
Click to show internal directories.
Click to hide internal directories.