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

Function EncodeSource

db/hybrid_logical_vector.go:713–715  ·  view source on GitHub ↗

EncodeSource encodes a source ID in base64 for storage.

(source string)

Source from the content-addressed store, hash-verified

711
712// EncodeSource encodes a source ID in base64 for storage.
713func EncodeSource(source string) string {
714 return base64.StdEncoding.EncodeToString([]byte(source))
715}
716
717// EncodeValueStr converts a simplified number ("1") to a hex-encoded string
718func EncodeValueStr(value string) (string, error) {

Callers 6

TestPvDeltaReadAndWriteFunction · 0.92
TestHLVImportFunction · 0.85
NewHLVAgentFunction · 0.85
EncodeTestVersionFunction · 0.85
ParseTestHistoryFunction · 0.85
RequireCVEqualFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestPvDeltaReadAndWriteFunction · 0.74
TestHLVImportFunction · 0.68