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

Method initReplicationStats

base/stats.go:347–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345}
346
347func (s *SgwStats) initReplicationStats() error {
348 s.ReplicatorStats = &ReplicatorStats{
349 new(expvar.Map).Init(),
350 }
351 return prometheus.Register(s.ReplicatorStats)
352}
353
354func (s *SgwStats) ReplicationStats() *expvar.Map {
355 return s.ReplicatorStats.Map

Callers 1

NewSyncGatewayStatsFunction · 0.95

Calls 1

InitMethod · 0.65

Tested by

no test coverage detected