package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Jun 29, 2024
License: ISC
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
¶
DisableLog disables all library log output. Logging output is disabled
by default until either UseLogger or SetLogWriter are called.
UseLogger uses a specified Logger to output package logging info.
This should be used in preference to SetLogWriter if the caller is also
using slog.
Manager manages event listeners.
NewManager returns a new Manager context.
Emit emits an event by passing it to all channels that have been registered
to listen for the event.
func (e *Manager) Register(event string, listener chan interface{})
Register registers an event listener (channel) to listen for the provided
event type.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.