grpcedtls

package
v0.0.0-...-810cf82 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 7 Imported by: 6

Documentation

Index

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
}

func (*Auth) AuthType

func (*Auth) AuthType() string

type Authenticator

type Authenticator struct {
	Config  func() (*tls.Config, error)
	PeerPub *[ed25519.PublicKeySize]byte
}

func (*Authenticator) ClientHandshake

func (a *Authenticator) ClientHandshake(ctx context.Context, addr string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)

func (*Authenticator) Clone

func (*Authenticator) GetRequestMetadata

func (a *Authenticator) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*Authenticator) Info

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)

Jump to

Keyboard shortcuts

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