MCPcopy Index your code
hub / github.com/chain/Core / needConfig

Method needConfig

core/api.go:119–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func (a *API) needConfig() func(f interface{}) http.Handler {
120 if a.config == nil {
121 return func(f interface{}) http.Handler {
122 return alwaysError(errUnconfigured)
123 }
124 }
125 return jsonHandler
126}
127
128// buildHandler adds the Core API routes to a preexisting http handler.
129func (a *API) buildHandler() {

Callers 2

buildHandlerMethod · 0.95
MockHSMFunction · 0.80

Calls 1

alwaysErrorFunction · 0.85

Tested by

no test coverage detected