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

Method unmarshalCachePrincipal

db/change_cache.go:576–580  ·  view source on GitHub ↗

Principals unmarshalled during caching don't need to instantiate a real principal - we're just using name and seq from the document

(docJSON []byte)

Source from the content-addressed store, hash-verified

574
575// Principals unmarshalled during caching don't need to instantiate a real principal - we're just using name and seq from the document
576func (c *changeCache) unmarshalCachePrincipal(docJSON []byte) (cachePrincipal, error) {
577 var principal cachePrincipal
578 err := base.JSONUnmarshal(docJSON, &principal)
579 return principal, err
580}
581
582// Process unused sequence notification. Extracts sequence from docID and sends to cache for buffering
583func (c *changeCache) processUnusedSequence(ctx context.Context, docID string, timeReceived channels.FeedTimestamp) {

Callers 1

processPrincipalDocMethod · 0.95

Calls 1

JSONUnmarshalFunction · 0.92

Tested by

no test coverage detected