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

Method CollectionJWTChannels

auth/user_collection_access.go:18–27  ·  view source on GitHub ↗
(scope, collection string)

Source from the content-addressed store, hash-verified

16var _ UserCollectionAccess = &userImpl{}
17
18func (user *userImpl) CollectionJWTChannels(scope, collection string) ch.TimedSet {
19 if base.IsDefaultCollection(scope, collection) {
20 return user.JWTChannels()
21 }
22
23 if cc, ok := user.getCollectionAccess(scope, collection); ok {
24 return cc.JWTChannels()
25 }
26 return nil
27}
28
29func (user *userImpl) SetCollectionJWTChannels(scope, collection string, channels ch.TimedSet, invalSeq uint64) {
30 if base.IsDefaultCollection(scope, collection) {

Callers

nothing calls this directly

Calls 4

JWTChannelsMethod · 0.95
IsDefaultCollectionFunction · 0.92
getCollectionAccessMethod · 0.80
JWTChannelsMethod · 0.65

Tested by

no test coverage detected