Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChannelIndex ¶
func GetChannelIndex[Message any](subscribers []FilterableChannel[Message], subscriber <-chan Message) int
Types ¶
type FilterableChannel ¶
type FilterableChannel[Message any] struct { Channel chan Message Filter MessageFilter[Message] }
type MessageFilter ¶
MessageFilter is an interface that defines a method to filter messages.
Click to show internal directories.
Click to hide internal directories.