riak-1.2.0.0: A Haskell client for the Riak decentralized data store
Copyright(c) 2011 MailRank Inc.
LicenseApache
MaintainerMark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Network.Riak.Content

Description

Low-level content and link types and functions.

Synopsis

Types

data RpbContent #

Fields :

  • value :: Lens' RpbContent Data.ByteString.ByteString
  • contentType :: Lens' RpbContent Data.ByteString.ByteString
  • maybe'contentType :: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
  • charset :: Lens' RpbContent Data.ByteString.ByteString
  • maybe'charset :: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
  • contentEncoding :: Lens' RpbContent Data.ByteString.ByteString
  • maybe'contentEncoding :: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
  • vtag :: Lens' RpbContent Data.ByteString.ByteString
  • maybe'vtag :: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
  • links :: Lens' RpbContent [RpbLink]
  • vec'links :: Lens' RpbContent (Data.Vector.Vector RpbLink)
  • lastMod :: Lens' RpbContent Data.Word.Word32
  • maybe'lastMod :: Lens' RpbContent (Prelude.Maybe Data.Word.Word32)
  • lastModUsecs :: Lens' RpbContent Data.Word.Word32
  • maybe'lastModUsecs :: Lens' RpbContent (Prelude.Maybe Data.Word.Word32)
  • usermeta :: Lens' RpbContent [RpbPair]
  • vec'usermeta :: Lens' RpbContent (Data.Vector.Vector RpbPair)
  • indexes :: Lens' RpbContent [RpbPair]
  • vec'indexes :: Lens' RpbContent (Data.Vector.Vector RpbPair)
  • deleted :: Lens' RpbContent Prelude.Bool
  • maybe'deleted :: Lens' RpbContent (Prelude.Maybe Prelude.Bool)
  • ttl :: Lens' RpbContent Data.Word.Word32
  • maybe'ttl :: Lens' RpbContent (Prelude.Maybe Data.Word.Word32)

Instances

Instances details
Eq RpbContent 
Instance details

Defined in Proto.Riak

Ord RpbContent 
Instance details

Defined in Proto.Riak

Show RpbContent 
Instance details

Defined in Proto.Riak

NFData RpbContent 
Instance details

Defined in Proto.Riak

Methods

rnf :: RpbContent -> () #

Message RpbContent 
Instance details

Defined in Proto.Riak

IsContent RpbContent Source # 
Instance details

Defined in Network.Riak.Value

HasField RpbContent "charset" ByteString 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "charset" -> (ByteString -> f ByteString) -> RpbContent -> f RpbContent #

HasField RpbContent "contentEncoding" ByteString 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "contentEncoding" -> (ByteString -> f ByteString) -> RpbContent -> f RpbContent #

HasField RpbContent "contentType" ByteString 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "contentType" -> (ByteString -> f ByteString) -> RpbContent -> f RpbContent #

HasField RpbContent "deleted" Bool 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "deleted" -> (Bool -> f Bool) -> RpbContent -> f RpbContent #

HasField RpbContent "lastMod" Word32 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "lastMod" -> (Word32 -> f Word32) -> RpbContent -> f RpbContent #

HasField RpbContent "lastModUsecs" Word32 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "lastModUsecs" -> (Word32 -> f Word32) -> RpbContent -> f RpbContent #

HasField RpbContent "ttl" Word32 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "ttl" -> (Word32 -> f Word32) -> RpbContent -> f RpbContent #

HasField RpbContent "value" ByteString 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "value" -> (ByteString -> f ByteString) -> RpbContent -> f RpbContent #

HasField RpbContent "vtag" ByteString 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "vtag" -> (ByteString -> f ByteString) -> RpbContent -> f RpbContent #

HasField RpbPutReq "content" RpbContent 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "content" -> (RpbContent -> f RpbContent) -> RpbPutReq -> f RpbPutReq #

HasField RpbContent "indexes" [RpbPair] 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "indexes" -> ([RpbPair] -> f [RpbPair]) -> RpbContent -> f RpbContent #

HasField RpbContent "links" [RpbLink] 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "links" -> ([RpbLink] -> f [RpbLink]) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'charset" (Maybe ByteString) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'charset" -> (Maybe ByteString -> f (Maybe ByteString)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'contentEncoding" (Maybe ByteString) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'contentEncoding" -> (Maybe ByteString -> f (Maybe ByteString)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'contentType" (Maybe ByteString) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'contentType" -> (Maybe ByteString -> f (Maybe ByteString)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'deleted" (Maybe Bool) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'deleted" -> (Maybe Bool -> f (Maybe Bool)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'lastMod" (Maybe Word32) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'lastMod" -> (Maybe Word32 -> f (Maybe Word32)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'lastModUsecs" (Maybe Word32) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'lastModUsecs" -> (Maybe Word32 -> f (Maybe Word32)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'ttl" (Maybe Word32) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'ttl" -> (Maybe Word32 -> f (Maybe Word32)) -> RpbContent -> f RpbContent #

HasField RpbContent "maybe'vtag" (Maybe ByteString) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "maybe'vtag" -> (Maybe ByteString -> f (Maybe ByteString)) -> RpbContent -> f RpbContent #

HasField RpbContent "usermeta" [RpbPair] 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "usermeta" -> ([RpbPair] -> f [RpbPair]) -> RpbContent -> f RpbContent #

HasField RpbContent "vec'indexes" (Vector RpbPair) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "vec'indexes" -> (Vector RpbPair -> f (Vector RpbPair)) -> RpbContent -> f RpbContent #

HasField RpbContent "vec'links" (Vector RpbLink) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "vec'links" -> (Vector RpbLink -> f (Vector RpbLink)) -> RpbContent -> f RpbContent #

HasField RpbContent "vec'usermeta" (Vector RpbPair) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "vec'usermeta" -> (Vector RpbPair -> f (Vector RpbPair)) -> RpbContent -> f RpbContent #

HasField RpbGetResp "content" [RpbContent] 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "content" -> ([RpbContent] -> f [RpbContent]) -> RpbGetResp -> f RpbGetResp #

HasField RpbGetResp "vec'content" (Vector RpbContent) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "vec'content" -> (Vector RpbContent -> f (Vector RpbContent)) -> RpbGetResp -> f RpbGetResp #

HasField RpbPutResp "content" [RpbContent] 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "content" -> ([RpbContent] -> f [RpbContent]) -> RpbPutResp -> f RpbPutResp #

HasField RpbPutResp "vec'content" (Vector RpbContent) 
Instance details

Defined in Proto.Riak

Methods

fieldOf :: Functor f => Proxy# "vec'content" -> (Vector RpbContent -> f (Vector RpbContent)) -> RpbPutResp -> f RpbPutResp #

data RpbLink #

Fields :

  • bucket :: Lens' RpbLink Data.ByteString.ByteString
  • maybe'bucket :: Lens' RpbLink (Prelude.Maybe Data.ByteString.ByteString)
  • key :: Lens' RpbLink Data.ByteString.ByteString
  • maybe'key :: Lens' RpbLink (Prelude.Maybe Data.ByteString.ByteString)
  • tag :: Lens' RpbLink Data.ByteString.ByteString
  • maybe'tag :: Lens' RpbLink (Prelude.Maybe Data.ByteString.ByteString)

Instances

Functions

empty :: RpbContent Source #

An empty piece of content.

binary :: ByteString -> RpbContent Source #

Content encoded as application/octet-stream.

json :: ToJSON a => a -> RpbContent Source #

Content encoded as application/json.

link :: Bucket -> Key -> Tag -> RpbLink Source #

Create a link.