package
Version:
v0.0.0-...-447f744
Opens a new window with list of versions in this module.
Published: Mar 4, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package subs is responsible for communication between modules and it facilitates dependency decoupling.
type Subject[T any] struct {
}
Subject is a single topic, which supports multiple subscribers.
func (s *Subject[T]) Publish(message T)
Publish message to all registered subscribers.
Subscribe registers a handler for event processing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.