Copyright | (c) 2011 MailRank Inc. |
---|---|
License | Apache |
Maintainer | Mark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Low-level content and link types and functions.
Synopsis
- data Content = Content {
- value :: !ByteString
- content_type :: !(Maybe ByteString)
- charset :: !(Maybe ByteString)
- content_encoding :: !(Maybe ByteString)
- vtag :: !(Maybe ByteString)
- links :: !(Seq Link)
- last_mod :: !(Maybe Word32)
- last_mod_usecs :: !(Maybe Word32)
- usermeta :: !(Seq Pair)
- indexes :: !(Seq Pair)
- deleted :: !(Maybe Bool)
- data Link = Link {
- bucket :: !(Maybe ByteString)
- key :: !(Maybe ByteString)
- tag :: !(Maybe ByteString)
- empty :: Content
- binary :: ByteString -> Content
- json :: ToJSON a => a -> Content
- link :: Bucket -> Key -> Tag -> Link
Types
Content | |
|
Instances
Link | |
|
Instances
Eq Link | |
Data Link | |
Defined in Network.Riak.Protocol.Link gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Link -> c Link # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Link # dataTypeOf :: Link -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Link) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Link) # gmapT :: (forall b. Data b => b -> b) -> Link -> Link # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Link -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Link -> r # gmapQ :: (forall d. Data d => d -> u) -> Link -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Link -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Link -> m Link # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Link -> m Link # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Link -> m Link # | |
Ord Link | |
Show Link | |
Generic Link | |
GPB Link | |
Defined in Network.Riak.Protocol.Link | |
Wire Link | |
TextMsg Link | |
TextType Link | |
ReflectDescriptor Link | |
Defined in Network.Riak.Protocol.Link | |
Mergeable Link | |
Defined in Network.Riak.Protocol.Link mergeAppend :: Link -> Link -> Link # mergeConcat :: Foldable t => t Link -> Link # | |
Default Link | |
Defined in Network.Riak.Protocol.Link defaultValue :: Link # | |
MessageAPI msg' (msg' -> Link) Link | |
type Rep Link | |
Defined in Network.Riak.Protocol.Link type Rep Link = D1 (MetaData "Link" "Network.Riak.Protocol.Link" "riak-protobuf-0.24.0.0-7JwUXguEL16DFQwjRdUSeY" False) (C1 (MetaCons "Link" PrefixI True) (S1 (MetaSel (Just "bucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString)) :*: (S1 (MetaSel (Just "key") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 (MetaSel (Just "tag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ByteString))))) |
Functions
binary :: ByteString -> Content Source #
Content encoded as application/octet-stream
.