Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group[V any] struct { // contains filtered or unexported fields }
func (*Group[V]) Close ¶
func (v *Group[V]) Close()
Close will close ALL channels and sending new messages will be no longer available
type Member ¶
func (*Member[V]) Close ¶
func (v *Member[V]) Close()
Close will leave current Group and close communication
func (*Member[V]) Recv ¶
Recv reads one message from channel
The "more" variable is false if channel has been closed and attempts for reading more messages will cause panic. If "more" is false just exit your read loop
func (*Member[V]) SetOnce ¶
func (v *Member[V]) SetOnce()
SetOnce will automatically call Member.Close after reading exactly ONE VALID message
func (*Member[V]) WithFilter ¶
WithFilter is built-in message filtering feature. Messages which doesn't meet filter function will be automatically "acked"
Only valid messages can be read ¶
Default filter is set to nil which means ALL messages are forwarded for reading
type Message ¶
type Message[V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.