MCPcopy Create free account
hub / github.com/chainreactors/spray / LoadResources

Function LoadResources

pkg/resource_provider.go:38–52  ·  view source on GitHub ↗

LoadResources executes the configured resource loader.

()

Source from the content-addressed store, hash-verified

36
37// LoadResources executes the configured resource loader.
38func LoadResources() error {
39 resourceLoader.RLock()
40 fn := resourceLoader.fn
41 resourceLoader.RUnlock()
42 if fn != nil {
43 return fn()
44 }
45 if err := LoadPorts(); err != nil {
46 return err
47 }
48 if err := LoadFingers(); err != nil {
49 return err
50 }
51 return LoadTemplates()
52}
53
54// LoadEmbeddedConfig loads the standalone embedded config without consulting
55// an installed external provider.

Callers 1

LoadFunction · 0.85

Calls 3

LoadPortsFunction · 0.85
LoadFingersFunction · 0.85
LoadTemplatesFunction · 0.85

Tested by

no test coverage detected