Stability | Portability : |
---|---|
Maintainer | Trevor Elliott <trevor@geekgateway.com> |
- class AssociationManager am where
- findAssociation :: am -> Provider -> Maybe Association
- addAssociation :: am -> UTCTime -> Provider -> Association -> am
- expire :: am -> UTCTime -> am
- exportAssociations :: am -> [(String, UTCTime, Association)]
Documentation
class AssociationManager am whereSource
Manage pairs of Providers and Associations.
findAssociation :: am -> Provider -> Maybe AssociationSource
Find an association.
addAssociation :: am -> UTCTime -> Provider -> Association -> amSource
Add a new association, and set its expiration to be relative to the now parameter passed in.
expire :: am -> UTCTime -> amSource
Expire associations in the manager that are older than the supplied now parameter.
exportAssociations :: am -> [(String, UTCTime, Association)]Source
Export all associations, and their expirations