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

Function getDaemon

functions.go:511–525  ·  view source on GitHub ↗

Get daemon endpoint setting from the local Graviton tree

()

Source from the content-addressed store, hash-verified

509
510// Get daemon endpoint setting from the local Graviton tree
511func getDaemon() (r string) {
512 result, err := GetValue("settings", []byte("endpoint"))
513 if err != nil {
514 r = DEFAULT_REMOTE_DAEMON
515 setDaemon(r)
516 session.Daemon = r
517 globals.Arguments["--daemon-address"] = r
518 return
519 }
520
521 r = string(result)
522 session.Daemon = r
523 globals.Arguments["--daemon-address"] = r
524 return
525}
526
527// Set the daemon endpoint setting to the local Graviton tree
528func setDaemon(s string) (err error) {

Callers 4

initSettingsFunction · 0.85
getGnomonFunction · 0.85
setGnomonFunction · 0.85
layoutSettingsFunction · 0.85

Calls 2

GetValueFunction · 0.85
setDaemonFunction · 0.85

Tested by

no test coverage detected