MCPcopy Create free account
hub / github.com/corestoreio/pkg / RegisterFactory

Function RegisterFactory

config/observer/observer.go:41–45  ·  view source on GitHub ↗

RegisterFactory adds a custom observer factory to the global registry. A custom observer can be accessed via Configuration.MakeObserver or via RegisterWithJSON. FactoryFunc can be anything, validation or modification, logging, etc.

(typeName string, fn FactoryFunc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestRegisterObserversFunction · 0.85
initFunction · 0.85

Calls 1

LockMethod · 0.80

Tested by 1

TestRegisterObserversFunction · 0.68