Documentation
¶
Index ¶
- func NewPubSub(ctx context.Context, handlers ...TopicHandler) *memberPubSub
- func NewPubSubBootstrap(ctx context.Context, handlers ...TopicHandler) *bootstrapPubSub
- func NewPubSubModerator(ctx context.Context) *moderatorPubSub
- type DiscoveryHandler
- type GossipNodeConnector
- type PubsubServerNodeConnector
- type TopicHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPubSub ¶
func NewPubSub(ctx context.Context, handlers ...TopicHandler) *memberPubSub
func NewPubSubBootstrap ¶
func NewPubSubBootstrap(ctx context.Context, handlers ...TopicHandler) *bootstrapPubSub
func NewPubSubModerator ¶ added in v0.3.129
Types ¶
type DiscoveryHandler ¶ added in v0.3.113
type DiscoveryHandler func(warpnet.WarpAddrInfo)
type GossipNodeConnector ¶ added in v0.3.112
type TopicHandler ¶ added in v0.3.112
type TopicHandler struct {
TopicName string
Handler topicHandler
}
func NewDiscoveryTopicHandler ¶ added in v0.3.113
func NewDiscoveryTopicHandler(handler topicHandler) TopicHandler
func NewTransitModerationHandler ¶ added in v0.3.138
func NewTransitModerationHandler() TopicHandler
func PrefollowUsers ¶ added in v0.3.138
func PrefollowUsers(userIds ...string) (handlers []TopicHandler)
Click to show internal directories.
Click to hide internal directories.