Get daemon endpoint setting from the local Graviton tree
()
| 509 | |
| 510 | // Get daemon endpoint setting from the local Graviton tree |
| 511 | func 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 |
| 528 | func setDaemon(s string) (err error) { |
no test coverage detected