MCPcopy Index your code
hub / github.com/syncthing/syncthing / SystemStatus

Method SystemStatus

lib/rc/rc.go:630–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

628}
629
630func (p *Process) SystemStatus() (SystemStatus, error) {
631 bs, err := p.Get("/rest/system/status")
632 if err != nil {
633 return SystemStatus{}, err
634 }
635
636 var res SystemStatus
637 if err := json.Unmarshal(bs, &res); err != nil {
638 return SystemStatus{}, err
639 }
640
641 return res, nil
642}
643
644type SystemVersion struct {
645 Arch string

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
UnmarshalMethod · 0.45

Tested by

no test coverage detected