MCPcopy Index your code
hub / github.com/devaccuracy/ledgerforge / Fetch

Function Fetch

config/config.go:257–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255}
256
257func Fetch() (*Configuration, error) {
258 config := ConfigStore.Load()
259 c, ok := config.(*Configuration)
260 if !ok {
261 return nil, errors.New("config not loaded from file: create a JSON file called ledgerforge.json with your config")
262 }
263 return c, nil
264}
265
266func (cnf *Configuration) validateAndAddDefaults() error {
267 if err := cnf.validateRequiredFields(); err != nil {

Callers 15

applyExternalAccountFunction · 0.92
processHTTPFunction · 0.92
ProcessWebhookMethod · 0.92
BenchmarkConfigFetchFunction · 0.92
NewLedgerForgeFunction · 0.92
ConfigMethod · 0.92
processTransactionsMethod · 0.92

Calls

no outgoing calls

Tested by 7

BenchmarkConfigFetchFunction · 0.74
setupRouterFunction · 0.74
setupLedgerForgeFunction · 0.74
TestLoadConfigFromFileFunction · 0.68
TestInitConfigFunction · 0.68