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

Method invalUserChannels

db/database.go:1936–1941  ·  view source on GitHub ↗

invalUserChannels invalidates a user's computed channels for the specified collections

(ctx context.Context, username string, collections base.ScopeAndCollectionNames, invalSeq uint64)

Source from the content-addressed store, hash-verified

1934
1935// invalUserChannels invalidates a user's computed channels for the specified collections
1936func (dbCtx *DatabaseContext) invalUserChannels(ctx context.Context, username string, collections base.ScopeAndCollectionNames, invalSeq uint64) {
1937 authr := dbCtx.Authenticator(ctx)
1938 if err := authr.InvalidateChannels(username, true, collections, invalSeq); err != nil {
1939 base.WarnfCtx(ctx, "Error invalidating channels for user %s: %v", base.UD(username), err)
1940 }
1941}
1942
1943// invalRoleChannels invalidates a role's computed channels for the specified collections
1944func (dbCtx *DatabaseContext) invalRoleChannels(ctx context.Context, rolename string, collections base.ScopeAndCollectionNames, invalSeq uint64) {

Callers

nothing calls this directly

Calls 4

AuthenticatorMethod · 0.95
WarnfCtxFunction · 0.92
UDFunction · 0.92
InvalidateChannelsMethod · 0.80

Tested by

no test coverage detected