Documentation ¶
Index ¶
- func FromContext(ctx context.Context) (pub *[ed25519.PublicKeySize]byte, ok bool)
- type Authenticator
- func (a *Authenticator) ClientHandshake(addr string, rawConn net.Conn, timeout time.Duration) (net.Conn, error)
- func (a *Authenticator) GetRequestMetadata(ctx context.Context) (map[string]string, error)
- func (a *Authenticator) Info() credentials.ProtocolInfo
- func (a *Authenticator) NewServerConn(ctx context.Context, conn net.Conn) context.Context
- func (a *Authenticator) ServerHandshake(conn net.Conn) (net.Conn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
Types ¶
type Authenticator ¶
type Authenticator struct { Config func() (*tls.Config, error) PeerPub *[ed25519.PublicKeySize]byte }
func (*Authenticator) ClientHandshake ¶
func (*Authenticator) GetRequestMetadata ¶
func (*Authenticator) Info ¶
func (a *Authenticator) Info() credentials.ProtocolInfo
func (*Authenticator) NewServerConn ¶
func (*Authenticator) ServerHandshake ¶
Click to show internal directories.
Click to hide internal directories.