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

Method expandCollectionWildCardChannel

auth/user.go:701–710  ·  view source on GitHub ↗
(scope, collection string, channels base.Set)

Source from the content-addressed store, hash-verified

699}
700
701func (user *userImpl) expandCollectionWildCardChannel(scope, collection string, channels base.Set) (base.Set, error) {
702 if channels.Contains(ch.AllChannelWildcard) {
703 allChannels, err := user.InheritedCollectionChannels(scope, collection)
704 if err != nil {
705 return nil, err
706 }
707 return allChannels.AsSet(), nil
708 }
709 return channels, nil
710}
711
712func (user *userImpl) filterToAvailableChannels(channelNames base.Set) (filtered ch.TimedSet, removed []string, err error) {
713 return user.FilterToAvailableCollectionChannels(base.DefaultScope, base.DefaultCollection, channelNames)

Callers 1

expandWildCardChannelMethod · 0.95

Calls 3

AsSetMethod · 0.80
ContainsMethod · 0.65

Tested by

no test coverage detected