Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

internal

v1.85.0
google.golang.org/grpc/credentials/alts/internal

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

7 matches

Top ↑

Package internal contains common core functionality for ALTS.

Variables

PeerNotRespondingError

var PeerNotRespondingError = &peerNotRespondingError{}

PeerNotRespondingError is returned when a peer server is not responding after a channel has been established. It is treated as a temporary connection error and re-connection to the server should be attempted.

Types

Handshaker

type Handshaker interface {
	// ClientHandshake starts and completes a client-side handshaking and
	// returns a secure connection and corresponding auth information.
	ClientHandshake(ctx context.Context) (net.Conn, credentials.AuthInfo, error)
	// ServerHandshake starts and completes a server-side handshaking and
	// returns a secure connection and corresponding auth information.
	ServerHandshake(ctx context.Context) (net.Conn, credentials.AuthInfo, error)
	// Close terminates the Handshaker. It should be called when the caller
	// obtains the secure connection.
	Close()
}

Handshaker defines a ALTS handshaker interface.

Side

type Side int

Side identifies the party's role: client or server.

ClientSide (2 declarations)

const (
	// ClientSide identifies the client in this communication.
	ClientSide Side = iota
	// ServerSide identifies the server in this communication.
	ServerSide
)

Dependency graph