(collAccess map[string]map[string]*CollectionAccess)
| 989 | } |
| 990 | |
| 991 | func 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 | } |
no test coverage detected