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

Method MarshalJSON

base/stats.go:1202–1204  ·  view source on GitHub ↗

MarshalJSON returns the JSON encoding of duration - the time elapsed since s.Val.

()

Source from the content-addressed store, hash-verified

1200
1201// MarshalJSON returns the JSON encoding of duration - the time elapsed since s.Val.
1202func (s *SgwDurStat) MarshalJSON() ([]byte, error) {
1203 return []byte(s.String()), nil
1204}
1205
1206// String returns the String representation of duration - the time elapsed since s.Val.
1207func (s *SgwDurStat) String() string {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected