How robby031/gochannel works
gochannel is a small, generic, thread-safe Go publish/subscribe library. Producers publish by topic or broadcast; the bus dispatches non-blockingly to buffered subscriber channels, dropping messages for full buffers and exposing drop counts and a callback. Subscribers can be removed explicitly or through context cancellation, and Close shuts down subscriptions. The runtime is implemented in gochannel.go; the graph focuses on its API and core behavior rather than delivery tooling.
Main entry points: gochannel.go Typed Bus API
Components 8
Other components
- Producer
- Typed Bus API
gochannel.go - Topic Registry
gochannel.go - Message Dispatch
gochannel.go - Subscriber
- Context Cancellation
- Subscription Lifecycle
gochannel.go - Drop Monitoring
gochannel.go
Connections 9
- Producer → Typed Bus API: publishes
README.md - Typed Bus API → Topic Registry: registers subscriptions
gochannel.go - Typed Bus API → Message Dispatch: dispatches messages
gochannel.go - Message Dispatch → Subscriber: sends messages
gochannel.go - Subscriber → Typed Bus API: unsubscribes
README.md - Context Cancellation → Subscription Lifecycle: triggers cleanup
gochannel.go - Subscription Lifecycle → Topic Registry: removes subscriber
gochannel.go - Typed Bus API → Subscription Lifecycle: closes subscriptions
gochannel.go - Message Dispatch → Drop Monitoring: records drops
gochannel.go