MCPcopy
hub / github.com/tmrts/go-patterns / OnNotify

Method OnNotify

behavioral/observer/main.go:23–23  ·  view source on GitHub ↗

OnNotify allows an event to be "published" to interface implementations. In the "real world", error handling would likely be implemented.

(Event)

Source from the content-addressed store, hash-verified

21 // OnNotify allows an event to be "published" to interface implementations.
22 // In the "real world", error handling would likely be implemented.
23 OnNotify(Event)
24 }
25
26 // Notifier is the instance being observed. Publisher is perhaps another decent

Callers 1

NotifyMethod · 0.65

Implementers 1

eventObserverbehavioral/observer/main.go

Calls

no outgoing calls

Tested by

no test coverage detected