MCPcopy
hub / github.com/syncthing/syncthing / ConfigInSync

Method ConfigInSync

lib/rc/rc.go:265–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263}
264
265func (p *Process) ConfigInSync() (bool, error) {
266 bs, err := p.Get("/rest/system/config/insync")
267 if err != nil {
268 return false, err
269 }
270 return bytes.Contains(bs, []byte("true")), nil
271}
272
273func (p *Process) GetConfig() (config.Configuration, error) {
274 var cfg config.Configuration

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
ContainsMethod · 0.80

Tested by

no test coverage detected