package
0.1.5
Repository: https://github.com/criticalstack/swoll.git
Documentation: pkg.go.dev

# Functions

CombinePaths takes several paths and flattens it into a single path.
FlatPaths implements Paths for a slice of paths.
LinearTreeTraverser implements TreeTraverser on behalf of a slice of paths.
New constructs a new PubSub.
PathsWithTraverser implement Paths and allow a TreeTraverser to have multiple paths with multiple traversers.
PathsWithTraverser implements Paths for both a slice of paths and a single TreeTraverser.
WithDeterministicHashing configures a PubSub that will use the given function to hash each published data point.
WithDeterministicRouting configures a subscription to have a deterministic routing name.
WithNoMutex configures a PubSub that does not have any internal mutexes.
WithPath configures a subscription to reside at a path.
WithRand configures a PubSub that will use the given function to make sharding decisions.
WithShardID configures a subscription to have a shardID.

# Structs

PathAndTraverser is a path and traverser pair.
PubSub uses the given SubscriptionEnroller to create the subscription tree.

# Interfaces

PubSubOption is used to configure a PubSub.
SubscribeOption is used to configure a subscription while subscribing.

# Type aliases

Paths is returned by a TreeTraverser.
Subscription is a subscription that will have corresponding data written to it.
TreeTraverser publishes data to the correct subscriptions.
Unsubscriber is returned by Subscribe.