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

Method GetChanges

db/change_cache.go:962–968  ·  view source on GitHub ↗

CHANGE ACCESS:

(ctx context.Context, channel channels.ID, options ChangesOptions)

Source from the content-addressed store, hash-verified

960// ////// CHANGE ACCESS:
961
962func (c *changeCache) GetChanges(ctx context.Context, channel channels.ID, options ChangesOptions) ([]*LogEntry, error) {
963
964 if c.stopped.IsTrue() {
965 return nil, base.HTTPErrorf(503, "Database closed")
966 }
967 return c.channelCache.GetChanges(ctx, channel, options)
968}
969
970// Returns the sequence number the cache is up-to-date with.
971func (c *changeCache) LastSequence() uint64 {

Callers 2

BenchmarkProcessEntryFunction · 0.95
BenchmarkDocChangedFunction · 0.95

Calls 3

HTTPErrorfFunction · 0.92
IsTrueMethod · 0.80
GetChangesMethod · 0.65

Tested by 2

BenchmarkProcessEntryFunction · 0.76
BenchmarkDocChangedFunction · 0.76