Documentation ¶
Index ¶
- func DeliveryHTTPClient(client *http.Client) func(*Delivery)
- func DeliveryPusher(pusher worker.Pusher) func(*Delivery)
- func DeliveryResourceRepository(repository flare.ResourceRepositorier) func(*Delivery)
- func DeliverySubscriptionRepository(repository flare.SubscriptionRepositorier) func(*Delivery)
- func PartitionConcurrency(concurrency int) func(*Partition)
- func PartitionOutput(output partitionOutputer) func(*Partition)
- func PartitionPusher(pusher worker.Pusher) func(*Partition)
- func PartitionResourceRepository(repository flare.ResourceRepositorier) func(*Partition)
- func SpreadConcurrency(concurrency int) func(*Spread)
- func SpreadOutput(output spreadOutputer) func(*Spread)
- func SpreadPusher(pusher worker.Pusher) func(*Spread)
- func SpreadSubscriptionRepository(repository flare.SubscriptionRepositorier) func(*Spread)
- type Delivery
- type Partition
- type Spread
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeliveryHTTPClient ¶
DeliveryHTTPClient set the default HTTP client to send the document changes.
func DeliveryPusher ¶
DeliveryPusher set the output of the messages.
func DeliveryResourceRepository ¶
func DeliveryResourceRepository(repository flare.ResourceRepositorier) func(*Delivery)
DeliveryResourceRepository set the resource repository.
func DeliverySubscriptionRepository ¶
func DeliverySubscriptionRepository(repository flare.SubscriptionRepositorier) func(*Delivery)
DeliverySubscriptionRepository set the subscription repository.
func PartitionConcurrency ¶
PartitionConcurrency control the concurrency used to output the result.
func PartitionOutput ¶
func PartitionOutput(output partitionOutputer) func(*Partition)
PartitionOutput is used to receive the output from Partition worker.
func PartitionPusher ¶
PartitionPusher set the pusher that gonna receive the trigger notifications.
func PartitionResourceRepository ¶
func PartitionResourceRepository(repository flare.ResourceRepositorier) func(*Partition)
PartitionResourceRepository set the repository on Trigger.
func SpreadConcurrency ¶
SpreadConcurrency set the concurrency to send the output result.
func SpreadOutput ¶
func SpreadOutput(output spreadOutputer) func(*Spread)
SpreadOutput set the output of the result.
func SpreadPusher ¶
SpreadPusher set the output of the messages.
func SpreadSubscriptionRepository ¶
func SpreadSubscriptionRepository(repository flare.SubscriptionRepositorier) func(*Spread)
SpreadSubscriptionRepository set the subscription repository.
Types ¶
type Delivery ¶
type Delivery struct {
// contains filtered or unexported fields
}
Delivery do the heavy lifting by discovering if the given subscription need or not to receive the document.
type Partition ¶
type Partition struct {
// contains filtered or unexported fields
}
Partition is used to process the signals on documents change.