Registry /
messaging / ontio-ontology-eventbus
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
eventbus
✓ github.com/ontio/ontology-eventbus
Publish and subscribe to events
package main
import (
"fmt"
"github.com/ontio/ontology-eventbus"
)
func main() {
eb := eventbus.NewEventBus()
eb.Subscribe("topic", func(msg interface{}) {
fmt.Println(msg)
})
eb.Publish("topic", "hello")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.9.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.