package
1.42.10
Repository: https://github.com/dubbogo/grpc-go.git
Documentation: pkg.go.dev

# Functions

LocalTCPListener returns a net.Listener listening on local address and port.
MarshalAny is a convenience function to marshal protobuf messages into any protos.
NewChannel returns a new Channel.
NewChannelWithSize returns a new Channel with a buffer of bufSize.
NewPipeListener creates a new pipe listener.
NewRestartableListener returns a new RestartableListener wrapping l.
StatusErrEqual returns true iff both err1 and err2 wrap status.Status errors and their underlying status protos are equal.

# 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.

# Structs

Channel wraps a generic channel and provides a timed receive operation.
FakeHTTPClient helps mock out HTTP calls made by the code under test.
PipeListener is a listener with an unbuffered pipe.
RestartableListener wraps a net.Listener and supports stopping and restarting the latter.