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

Method AddChannelsForCollection

auth/auth_test.go:335–345  ·  view source on GitHub ↗
(scope, collection string, channels ch.TimedSet)

Source from the content-addressed store, hash-verified

333}
334
335func (mc *mockComputer) AddChannelsForCollection(scope, collection string, channels ch.TimedSet) {
336 if mc.channels == nil {
337 mc.channels = make(map[string]map[string]ch.TimedSet)
338 }
339 collectionMap, ok := mc.channels[scope]
340 if !ok {
341 collectionMap = make(map[string]ch.TimedSet)
342 mc.channels[scope] = collectionMap
343 }
344 collectionMap[collection] = channels
345}
346
347func (mc *mockComputer) AddRoleChannelsForCollection(scope, collection string, channels ch.TimedSet) {
348 if mc.roleChannels == nil {

Calls

no outgoing calls

Tested by

no test coverage detected