Copyright | (c) Trevor Elliott 2008 |
---|---|
License | AllRightsReserved |
Maintainer | Trevor Elliott <trevor@geekgateway.com> |
Stability | Portability : |
Safe Haskell | None |
Language | Haskell98 |
- class AssociationManager am where
Documentation
class AssociationManager am where Source #
Manage pairs of Providers and Associations.
findAssociation :: am -> Provider -> Maybe Association Source #
Find an association.
addAssociation :: am -> UTCTime -> Provider -> Association -> am Source #
Add a new association, and set its expiration to be relative to the "now" parameter passed in.
expire :: am -> UTCTime -> am Source #
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