Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
// Subscribe's channel also receives messages published to descendant topics.
Subscribe(name string, topic string) (<-chan entity.PubsubMessage, error)
GetSubscribers(topic string) []string
// Unsubscribe closes the subscriber's channel.
Unsubscribe(name string, topic string) error
// Publish skips self-delivery to from; ctx bounds only the cross-instance hop, so delivery can be partial.
Publish(ctx context.Context, from string, topic string, kind string, payload any) error
common.Daemon
}
type Option ¶ added in v0.4.9
type Option func(*options)
func WithChannelBuffer ¶ added in v0.4.9
func WithOnFull ¶ added in v0.4.9
func WithQueueCap ¶ added in v0.4.9
Click to show internal directories.
Click to hide internal directories.