types

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 3

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

	// Invoke performs a unary RPC and returns after the response is received
	// into reply.
	Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) error
	// NewStream begins a streaming RPC.
	NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (grpc.ClientStream, error)
}

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.
	ClientConn(target 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