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

Method GetChanges

db/channel_cache.go:283–290  ·  view source on GitHub ↗
(ctx context.Context, ch channels.ID, options ChangesOptions)

Source from the content-addressed store, hash-verified

281}
282
283func (c *channelCacheImpl) GetChanges(ctx context.Context, ch channels.ID, options ChangesOptions) ([]*LogEntry, error) {
284
285 cache, err := c.getChannelCache(ctx, ch)
286 if err != nil {
287 return nil, err
288 }
289 return cache.GetChanges(ctx, options)
290}
291
292func (c *channelCacheImpl) GetCachedChanges(ctx context.Context, channel channels.ID) ([]*LogEntry, error) {
293 options := ChangesOptions{Since: SequenceID{Seq: 0}}

Callers

nothing calls this directly

Calls 2

getChannelCacheMethod · 0.95
GetChangesMethod · 0.65

Tested by

no test coverage detected