Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiveToChannel ¶
func ReceiveToChannel(ctx context.Context, sub Receiver) <-chan MessageOrError
ReceiveToChannel pulls messages from a subscription sub until it gets an error or its context is closed. It returns the channel for messages and/or errors and is never a blocking call.
Types ¶
type MessageOrError ¶
MessageOrError is a wrapper type for channels which need to transmit both messages and errors.
Click to show internal directories.
Click to hide internal directories.