Documentation ¶
Overview ¶
Package buffernet provides facilities to establish a connection via grpc via internal buffers, allowing for testing services and clients without worrying about real networks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferTransport ¶
func New ¶
func New() *BufferTransport
func (*BufferTransport) Connect ¶
func (b *BufferTransport) Connect(ctx context.Context) (conn *grpc.ClientConn, problem error)
Connect establishes a connection to the listening service via the buffer. Will block until the connection is established.
func (*BufferTransport) ListenAsync ¶
func (b *BufferTransport) ListenAsync(server *grpc.Server) (<-chan error, func())
Click to show internal directories.
Click to hide internal directories.