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 | Haskell2010 |
Smart deconstructors for Riak types. These functions correctly URL-unescape bucket, key, and link names. You should thus use them in preference to direct pattern matching against raw data constructors.
Synopsis
- getClientID :: RpbGetClientIdResp -> ClientID
- get :: Maybe RpbGetResp -> Maybe ([RpbContent], VClock)
- put :: RpbPutResp -> ([RpbContent], VClock)
- listBuckets :: RpbListBucketsResp -> [Bucket]
- getBucket :: RpbGetBucketResp -> RpbBucketProps
- unescapeLinks :: RpbContent -> RpbContent
- search :: RpbSearchQueryResp -> SearchResult
- getIndex :: RpbYokozunaIndexGetResp -> [IndexInfo]
Connection management
Data management
get :: Maybe RpbGetResp -> Maybe ([RpbContent], VClock) Source #
Construct a get response. Bucket and key names in links are URL-unescaped.
put :: RpbPutResp -> ([RpbContent], VClock) Source #
Construct a put response. Bucket and key names in links are URL-unescaped.
Metadata
listBuckets :: RpbListBucketsResp -> [Bucket] Source #
Construct a list-buckets response. Bucket names are unescaped.
unescapeLinks :: RpbContent -> RpbContent Source #
URL-unescape the names of keys and buckets in the links of a
Content
value.
getIndex :: RpbYokozunaIndexGetResp -> [IndexInfo] Source #