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

Method SystemVersion

lib/rc/rc.go:652–664  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

650}
651
652func (p *Process) SystemVersion() (SystemVersion, error) {
653 bs, err := p.Get("/rest/system/version")
654 if err != nil {
655 return SystemVersion{}, err
656 }
657
658 var res SystemVersion
659 if err := json.Unmarshal(bs, &res); err != nil {
660 return SystemVersion{}, err
661 }
662
663 return res, nil
664}
665
666func (p *Process) RemoteInSync(folder string, dev protocol.DeviceID) (bool, error) {
667 bs, err := p.Get(fmt.Sprintf("/rest/db/completion?folder=%v&device=%v", url.QueryEscape(folder), dev))

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
UnmarshalMethod · 0.45

Tested by

no test coverage detected