Documentation
¶
Index ¶
- func Commands() []internal.Command
- func WithName(name string) func(channel *Channel)
- func WithPattern(pattern string) func(channel *Channel)
- type Channel
- type EmbeddedSub
- type PubSub
- func (ps *PubSub) Channels(pattern string) []byte
- func (ps *PubSub) GetAllChannels() []*Channel
- func (ps *PubSub) NumPat() int
- func (ps *PubSub) NumSub(channels []string) []byte
- func (ps *PubSub) Publish(message string, channelName string)
- func (ps *PubSub) Subscribe(sub any, channels []string, withPattern bool)
- func (ps *PubSub) Unsubscribe(sub any, channels []string, withPattern bool) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPattern ¶
WithPattern option sets the compiled glob pattern for the channel if it's a pattern channel.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func (*Channel) Unsubscribe ¶
type EmbeddedSub ¶
type EmbeddedSub struct {
// contains filtered or unexported fields
}
func NewEmbeddedSub ¶
func NewEmbeddedSub() *EmbeddedSub
Click to show internal directories.
Click to hide internal directories.