pubsub

package
v0.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pubsub implements a publishing/subscription service. Subscribe to it using system/subscribe/service messages; subscribers will receive non-system (non-subscriber) messages that arrive at the publisher. If the `property` config is set, only the corresponding payload value of a message will be published.

Additional features:

  • subscription to topics (default is "default")
  • provide certain values from messages (payload properties)
  • keep values in a configurable store and provide immediately to subscribers
  • request value from a provider

Config settings:

  • property (optional): the payload property that should be published
  • memory: a Memory implementation for storing properties, key = topic, value = value top be publishe
  • provider (optional) = the actor that should be queried for obtaining the value for a certain topic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL