package
0.0.21
Repository: https://github.com/tonsofattraction/grpc-go.git
Documentation: pkg.go.dev

# Packages

Package e2e provides utilities for end2end testing of xDS functionality.
Package fakeclient provides a fake implementation of an xDS client.
Package fakeserver provides a fake implementation of the management server.

# Functions

IsRoundRobin checks whether f's return value is roundrobin of elements from want.
LocalityIDToProto converts a LocalityID to its proto representation.
LocalTCPListener returns a net.Listener listening on local address and port.
NewClusterLoadAssignmentBuilder creates a ClusterLoadAssignmentBuilder.
NewTestClientConn creates a TestClientConn.
NewTestWRR return a WRR for testing.

# Constants

TestSubConnsCount is the number of TestSubConns initialized as part of package init.

# Variables

EmptyNodeProtoV2 is a v2 Node proto with no fields set.
EmptyNodeProtoV3 is a v3 Node proto with no fields set.
ErrTestConstPicker is error returned by test const picker.
TestSubConns contains a list of SubConns to be used in tests.

# Structs

AddLocalityOptions contains options when adding locality to the builder.
ClusterLoadAssignmentBuilder builds a ClusterLoadAssignment, aka EDS response.
TestClientConn is a mock balancer.ClientConn used in tests.
TestConstPicker is a const picker for tests.
TestSubConn implements the SubConn interface, to be used in tests.