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

Function RegisterWithJSON

config/observer/json.go:168–190  ·  view source on GitHub ↗

RegisterWithJSON reads all JSON byte data from r into memory, parses it, creates the appropriate observers and registers them with the config.Service. The data in io.Reader must have the structure of type `Configurations`.

(or config.ObserverRegisterer, r io.Reader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

RegisterWithJSONviaHTTPFunction · 0.85
TestRegisterObserversFunction · 0.85

Calls 5

UnmarshalJSONMethod · 0.95
NewConfigurationsFunction · 0.85
MakeObserverMethod · 0.80
NewMethod · 0.65
RegisterObserverMethod · 0.65

Tested by 1

TestRegisterObserversFunction · 0.68