Defines channel grants and history for a single collection
| 135 | |
| 136 | // Defines channel grants and history for a single collection |
| 137 | type CollectionAccess struct { |
| 138 | ExplicitChannels_ ch.TimedSet `json:"admin_channels,omitempty"` |
| 139 | Channels_ ch.TimedSet `json:"all_channels,omitempty"` |
| 140 | ChannelHistory_ TimedSetHistory `json:"channel_history,omitempty"` // Added to when a previously granted channel is revoked. Calculated inside of RebuildChannels. |
| 141 | ChannelInvalSeq uint64 `json:"channel_inval_seq,omitempty"` // Sequence at which the channels were invalidated. Data remains in Channels_ for history calculation. |
| 142 | JWTChannels_ ch.TimedSet `json:"jwt_channels,omitempty"` // TODO: JWT properties should only be populated for user but would like to share scope/collection map |
| 143 | JWTLastUpdated *time.Time `json:"jwt_last_updated,omitempty"` |
| 144 | } |
| 145 | |
| 146 | func (ca *CollectionAccess) ExplicitChannels() ch.TimedSet { |
| 147 | return ca.ExplicitChannels_ |
nothing calls this directly
no outgoing calls
no test coverage detected