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

Method formatSerialNumber

rest/handler.go:1808–1813  ·  view source on GitHub ↗

formatSerialNumber returns the formatted serial number

()

Source from the content-addressed store, hash-verified

1806
1807// formatSerialNumber returns the formatted serial number
1808func (h *handler) formatSerialNumber() string {
1809 if h.formattedSerialNumber == "" {
1810 h.formattedSerialNumber = fmt.Sprintf("#%03d", h.serialNumber)
1811 }
1812 return h.formattedSerialNumber
1813}
1814
1815// shouldShowProductVersion returns whether the handler should show detailed product info (version).
1816// Admin requests can always see this, regardless of the HideProductVersion setting.

Callers 6

ctxMethod · 0.95
logDurationMethod · 0.95
writeErrorMethod · 0.95
handleBLIPSyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected