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

Method add

auth/user.go:271–275  ·  view source on GitHub ↗
(chanName string, triggeredBy uint64)

Source from the content-addressed store, hash-verified

269type RevokedChannels map[string]uint64
270
271func (revokedChannels RevokedChannels) add(chanName string, triggeredBy uint64) {
272 if currentVal, ok := revokedChannels[chanName]; !ok || triggeredBy > currentVal {
273 revokedChannels[chanName] = triggeredBy
274 }
275}
276
277func (user *userImpl) revokedChannels(since uint64, lowSeq uint64, triggeredBy uint64) (RevokedChannels, error) {
278 return user.RevokedCollectionChannels(base.DefaultScope, base.DefaultCollection, since, lowSeq, triggeredBy)

Callers 2

add_file_collection_taskFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected