Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thalesfsp/broker
Broker broadcast an event to many listeners
https://github.com/thalesfsp/broker
broadcast broker channel event event-listener goroutine listener
Last synced: 8 days ago
JSON representation
Broker broadcast an event to many listeners
- Host: GitHub
- URL: https://github.com/thalesfsp/broker
- Owner: thalesfsp
- License: mit
- Created: 2022-03-07T17:03:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T17:25:40.000Z (over 2 years ago)
- Last Synced: 2024-06-21T08:23:20.334Z (5 months ago)
- Topics: broadcast, broker, channel, event, event-listener, goroutine, listener
- Language: Go
- Homepage: https://github.com/thalesfsp/broker
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# broker
`broker` allows to register `Listener`s to listen for events. A `broker` broadcast an event to all `Listener`s, 1:N. Broker's goal isn't to broadcast events cross-services, for this case use NATS, Redis, and etc. Goal is to propagate an event - a change, internally and react to it.
## Install
`$ go get github.com/thalesfsp/broker`
### Specific version
Example: `$ go get github.com/thalesfsp/[email protected]`
## Usage
See [`example_test.go`](example_test.go) file.
### Documentation
Run `$ make doc` or check out [online](https://pkg.go.dev/github.com/thalesfsp/broker).
## Development
Check out [CONTRIBUTION](CONTRIBUTION.md).
### Release
1. Update [CHANGELOG](CHANGELOG.md) accordingly.
2. Once changes from MR are merged.
3. Tag and release.## Roadmap
Check out [CHANGELOG](CHANGELOG.md).