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

Function base64UserInfo

db/active_replicator.go:331–334  ·  view source on GitHub ↗

base64UserInfo returns the base64 encoded version of the given UserInfo. Can't use i.String() here because that returns URL encoded versions of credentials.

(i *url.Userinfo)

Source from the content-addressed store, hash-verified

329// base64UserInfo returns the base64 encoded version of the given UserInfo.
330// Can't use i.String() here because that returns URL encoded versions of credentials.
331func base64UserInfo(i *url.Userinfo) string {
332 password, _ := i.Password()
333 return base64.StdEncoding.EncodeToString([]byte(i.Username() + ":" + password))
334}
335
336// combinedState reports a combined replication state for a pushAndPull
337// replication, based on the following criteria:

Callers 1

blipSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected