# Packages
Package fakegrpclb provides a fake implementation of the grpclb server.
Package pickfirst contains helper functions to check for pickfirst load balancing of RPCs in tests.
Package rls contains utilities for RouteLookupService e2e tests.
Package roundrobin contains helper functions to check for roundrobin and weighted-roundrobin load balancing of RPCs in tests.
No description provided by the author
# Functions
IsRoundRobin checks whether f's return value is roundrobin of elements from want.
LocalTCPListener returns a net.Listener listening on local address and port.
MarshalAny is a convenience function to marshal protobuf messages into any protos.
MustParseURL attempts to parse the provided target using url.Parse() and panics if parsing fails.
NewChannel returns a new Channel.
NewChannelWithSize returns a new Channel with a buffer of bufSize.
NewListenerWrapper returns a ListenerWrapper.
NewPipeListener creates a new pipe listener.
NewRestartableListener returns a new RestartableListener wrapping l.
NewTestClientConn creates a TestClientConn.
NewTestWRR return a WRR for testing.
ParsePort returns the port from the given address string, as a unit32.
StatusErrEqual returns true iff both err1 and err2 wrap status.Status errors and their underlying status protos are equal.
SubConnFromPicker returns a function which returns a SubConn by calling the Pick() method of the provided picker.
# Constants
DefaultChanBufferSize is the default buffer size of the underlying channel.
DefaultHTTPRequestTimeout is the default timeout value for the amount of time this client waits for a response to be pushed on RespChan before it fails the Do() call.
TestSubConnsCount is the number of TestSubConns initialized as part of package init.
# Variables
ErrTestConstPicker is error returned by test const picker.
TestSubConns contains a list of SubConns to be used in tests.
# Structs
Channel wraps a generic channel and provides a timed receive operation.
ConnWrapper wraps a net.Conn and pushes on a channel when closed.
FakeHTTPClient helps mock out HTTP calls made by the code under test.
ListenerWrapper wraps a net.Listener and the returned net.Conn.
PipeListener is a listener with an unbuffered pipe.
RestartableListener wraps a net.Listener and supports stopping and restarting the latter.
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.