types

package
v0.0.0-...-c34bea4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConn

type ClientConn interface {
	// GetState returns the connectivity.State of ClientConn.
	GetState() connectivity.State
	io.Closer
	grpc.ClientConnInterface
}

ClientConn is an interface that defines the functions clients need to perform unary and streaming RPCs. It is implemented by *grpc.ClientConn.

type ClientConnBuilder

type ClientConnBuilder interface {
	// ClientConn creates a new ClientConn using target as the address and,
	// optionally, hostname.
	ClientConn(target, hostname string) (ClientConn, error)
}

ClientConnBuilder wraps the ClientConn method.

type Peer

type Peer struct {
	peerTypes.Peer
	Conn ClientConn
}

Peer is like hubblePeer.Peer but includes a Conn attribute to reach the peer's gRPC API endpoint.

Jump to

Keyboard shortcuts

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