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

Function GetExplicitCollectionChannelsForAuditEvent

auth/auth.go:991–1001  ·  view source on GitHub ↗
(collAccess map[string]map[string]*CollectionAccess)

Source from the content-addressed store, hash-verified

989}
990
991func GetExplicitCollectionChannelsForAuditEvent(collAccess map[string]map[string]*CollectionAccess) map[string]map[string][]string {
992 channelAccess := make(map[string]map[string][]string)
993 for scopeName, scope := range collAccess {
994 explicitChans := make(map[string][]string)
995 for collectionName, collection := range scope {
996 explicitChans[collectionName] = collection.ExplicitChannels().AllKeys()
997 }
998 channelAccess[scopeName] = explicitChans
999 }
1000 return channelAccess
1001}

Callers 1

getAuditEventAccessFunction · 0.92

Calls 2

AllKeysMethod · 0.80
ExplicitChannelsMethod · 0.65

Tested by

no test coverage detected