gitlab.com/jokerrs1/Sia@v1.3.2/node/api/client/daemon.go (about) 1 package client 2 3 import "github.com/NebulousLabs/Sia/node/api" 4 5 // DaemonVersionGet requests the /daemon/version resource 6 func (c *Client) DaemonVersionGet() (dvg api.DaemonVersionGet, err error) { 7 err = c.get("/daemon/version", &dvg) 8 return 9 } 10 11 // DaemonStopGet stops the daemon using the /daemon/stop endpoint. 12 func (c *Client) DaemonStopGet() (err error) { 13 err = c.get("/daemon/stop", nil) 14 return 15 }