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

Method getReplication

rest/admin_api.go:2194–2206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2192}
2193
2194func (h *handler) getReplication() error {
2195 replicationID := mux.Vars(h.rq)["replicationID"]
2196 replication, err := h.db.SGReplicateMgr.GetReplication(replicationID)
2197 if replication == nil {
2198 if err == nil {
2199 return kNotFoundError
2200 }
2201 return err
2202 }
2203 base.Audit(h.ctx(), base.AuditIDISGRRead, base.AuditFields{base.AuditFieldReplicationID: replicationID})
2204 h.writeJSON(replication.Redacted(h.ctx()))
2205 return nil
2206}
2207
2208func (h *handler) putReplication() error {
2209

Callers

nothing calls this directly

Calls 5

ctxMethod · 0.95
writeJSONMethod · 0.95
AuditFunction · 0.92
GetReplicationMethod · 0.80
RedactedMethod · 0.45

Tested by

no test coverage detected