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

Method getReplicationStatusOptions

rest/admin_api.go:2275–2286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2273}
2274
2275func (h *handler) getReplicationStatusOptions() db.ReplicationStatusOptions {
2276 activeOnly, _ := h.getOptBoolQuery("activeOnly", false)
2277 localOnly, _ := h.getOptBoolQuery("localOnly", false)
2278 includeError, _ := h.getOptBoolQuery("includeError", true)
2279 includeConfig, _ := h.getOptBoolQuery("includeConfig", false)
2280 return db.ReplicationStatusOptions{
2281 ActiveOnly: activeOnly,
2282 LocalOnly: localOnly,
2283 IncludeError: includeError,
2284 IncludeConfig: includeConfig,
2285 }
2286}
2287
2288func (h *handler) putReplicationStatus() error {
2289 replicationID := mux.Vars(h.rq)["replicationID"]

Callers 2

getReplicationsStatusMethod · 0.95
getReplicationStatusMethod · 0.95

Calls 1

getOptBoolQueryMethod · 0.95

Tested by

no test coverage detected