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

Function ToInt64

base/util.go:227–241  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

225}
226
227func ToInt64(value interface{}) (int64, bool) {
228 switch value := value.(type) {
229 case int64:
230 return value, true
231 case float64:
232 return int64(value), true
233 case int:
234 return int64(value), true
235 case json.Number:
236 if n, err := value.Int64(); err == nil {
237 return n, true
238 }
239 }
240 return 0, false
241}
242
243func CouchbaseUrlWithAuth(serverUrl, username, password, bucketname string) (string, error) {
244

Callers 12

ReadMultipartDocumentFunction · 0.92
handleBulkGetMethod · 0.92
getTestRevposFunction · 0.92
splitRevisionListFunction · 0.92
mergeAttachmentsFunction · 0.92
processRevMethod · 0.92
sendGetAttachmentMethod · 0.92
loadAttachmentsDataMethod · 0.92
ForEachStubAttachmentMethod · 0.92
GetAttachmentVersionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected