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

Method expandWildCardChannel

auth/user.go:697–699  ·  view source on GitHub ↗

If a channel list contains the all-channel wildcard, replace it with all the user's accessible channels.

(channels base.Set)

Source from the content-addressed store, hash-verified

695
696// If a channel list contains the all-channel wildcard, replace it with all the user's accessible channels.
697func (user *userImpl) expandWildCardChannel(channels base.Set) (base.Set, error) {
698 return user.expandCollectionWildCardChannel(base.DefaultScope, base.DefaultCollection, channels)
699}
700
701func (user *userImpl) expandCollectionWildCardChannel(scope, collection string, channels base.Set) (base.Set, error) {
702 if channels.Contains(ch.AllChannelWildcard) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected