MCPcopy Create free account
hub / github.com/DEROFDN/Engram / initSettings

Function initSettings

functions.go:268–282  ·  view source on GitHub ↗

Get the Engram settings from the local Graviton tree

()

Source from the content-addressed store, hash-verified

266
267// Get the Engram settings from the local Graviton tree
268func initSettings() {
269 getNetwork()
270 getMode()
271 getDaemon()
272 getGnomon()
273 if a.Driver().Device().IsMobile() {
274 err := tela.SetShardPath(filepath.Join(AppPath(), filepath.Dir(shards.GetPath())))
275 if err != nil {
276 logger.Errorf("[Engram] Setting TELA shard: %s\n", err)
277 return
278 }
279
280 os.RemoveAll(tela.GetPath())
281 }
282}
283
284// Go routine to update the latest information from the connected daemon (Online Mode only)
285func StartPulse() {

Callers 2

layoutSettingsFunction · 0.85
mainFunction · 0.85

Calls 5

getNetworkFunction · 0.85
getModeFunction · 0.85
getDaemonFunction · 0.85
getGnomonFunction · 0.85
AppPathFunction · 0.85

Tested by

no test coverage detected