Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink is an implementation of a message sync; it receives messages broadcast by its parent source.
func (*Sink) Close ¶
func (s *Sink) Close()
Close releases any resources allocated as part of this sink's creation.
func (*Sink) Messages ¶
Messages returns the read channel of messages broadcast by the source. The backing channel is buffered to allow for additional messages to be generated while the current message is being processed; that being said the sink has a responsibility to consume messages from this channel as quickly as possible.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source represents a message source that will be broadcast to its sinks.
func (*Source) SendMessage ¶
SendMessage sends a message to all created sinks.
Click to show internal directories.
Click to hide internal directories.