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

Function ParseIntSequenceComponent

db/sequence_id.go:132–140  ·  view source on GitHub ↗
(component string, allowEmpty bool)

Source from the content-addressed store, hash-verified

130}
131
132func ParseIntSequenceComponent(component string, allowEmpty bool) (uint64, error) {
133 value := uint64(0)
134 if allowEmpty && component == "" {
135 return value, nil
136 }
137 value, err := strconv.ParseUint(component, 10, 64)
138 return value, err
139
140}
141
142func (s SequenceID) MarshalJSON() ([]byte, error) {
143

Callers 1

parseIntegerSequenceIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected