package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Packages
Package syslogger uses the event package to listen for any event that
implements the Syslogger interface.
# Functions
AddListener registers a listener function that will be called when a matching event is dispatched.
Dispatch sends an event to all registered listeners that were declared to accept values of the event's type, or interfaces that the value implements.
DispatchUpdate calls Update() on the event and then dispatches it.
# Structs
Hooks holds a list of parameter-less functions to call whenever the set is triggered with Fire().
# Interfaces
Updater is an interface that events can implement to combine updating and dispatching into one call.
# Type aliases
BadListenerError is raised via panic() when AddListener is called with an invalid listener function.