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.
Click to show internal directories.
Click to hide internal directories.