Browse Source

New metadata actions

Marcos Dumay de Medeiros 8 years ago
parent
commit
f6dacb2c7c
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/Walrus/Backend/Metadata.hs

+ 6 - 2
src/Walrus/Backend/Metadata.hs

@@ -29,12 +29,16 @@ import qualified Data.List as List
 
 -- | All the actions that walrus may request from a backend
 data BackendAction =
-  -- | Recieve new email
+  -- | Recieve new resource
   DELIVER |
   -- | Verify if a backend will handle the rcpt to addresses
   WILLHANDLE |
   -- | Verifies if accounts exist as in the SMTP VRFY command
-  VERIFY deriving (Show, Read, Eq, Ord, Bounded, Enum)
+  VERIFY |
+  -- | Fetch a resource
+  FETCH |
+  -- | Delete a resource
+  DELETE deriving (Show, Read, Eq, Ord, Bounded, Enum)
 
 -- | The network data of a client (IP and port)
 data ClientIdentity = ClientIdentity {_clientIp :: IP, _clientPort :: Int} deriving (Show, Read, Ord, Eq)