grpcedtls

package
v0.0.0-...-330f150 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 8 Imported by: 0

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(addr string, rawConn net.Conn, timeout time.Duration) (net.Conn, credentials.AuthInfo, error)

func (*Authenticator) GetRequestMetadata

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

func (*Authenticator) Info

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