Documentation ¶
Overview ¶
Package test provides re-usable functions for binding tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkSendReceive ¶
Simple send/receive benchmark. Requires a sender and receiver that are connected to each other.
Types ¶
type ChanReceiver ¶
ChanReceiver implements Receiver by receiving Messages from a channel.
type ChanRequester ¶
type ChanRequester struct { Ch chan<- binding.Message Reply func(message binding.Message) (binding.Message, error) }
type ChanResponder ¶
type ChanResponder struct { In <-chan binding.Message Out chan<- ChanResponderResponse }
ChanResponder implements Responder by receiving Messages from a channel and outputting the result in an output channel.
func (*ChanResponder) Respond ¶
func (r *ChanResponder) Respond(ctx context.Context) (binding.Message, protocol.ResponseFn, error)
type ChanResponderResponse ¶
type ChanSender ¶
ChanSender implements Sender by sending Messages on a channel.
Click to show internal directories.
Click to hide internal directories.