MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / AsBody

Method AsBody

db/sg_replicate_cfg.go:1387–1392  ·  view source on GitHub ↗

AsBody returns a Body representation of ReplicationStatusDoc for use with putSpecial

()

Source from the content-addressed store, hash-verified

1385
1386// AsBody returns a Body representation of ReplicationStatusDoc for use with putSpecial
1387func (r *ReplicationStatusDoc) AsBody() Body {
1388 return Body{
1389 replicationStatusBodyRev: r.Rev,
1390 replicationStatusBodyStatus: r.Status,
1391 }
1392}
1393
1394// Add adds the value of all counter stats in other to ReplicationStatus
1395func (rs *PullReplicationStatus) Add(other PullReplicationStatus) {

Callers 1

setLocalStatusFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected