riak-protobuf-lens-0.24.0.0: Lenses for riak-protobuf

Safe HaskellNone
LanguageHaskell2010

Network.Riak.Protocol.Lens

Documentation

type Lens' s a = forall f. Functor f => (a -> f a) -> s -> f s Source #

class HasPassword s a | s -> a where Source #

Methods

password :: Lens' s a Source #

class HasUser s a | s -> a where Source #

Methods

user :: Lens' s a Source #

class HasPrimary s a | s -> a where Source #

Methods

primary :: Lens' s a Source #

class HasAllowMult s a | s -> a where Source #

Methods

allow_mult :: Lens' s a Source #

class HasBackend s a | s -> a where Source #

Methods

backend :: Lens' s a Source #

class HasBigVclock s a | s -> a where Source #

Methods

big_vclock :: Lens' s a Source #

class HasChashKeyfun s a | s -> a where Source #

Methods

chash_keyfun :: Lens' s a Source #

class HasConsistent s a | s -> a where Source #

Methods

consistent :: Lens' s a Source #

class HasDatatype s a | s -> a where Source #

Methods

datatype :: Lens' s a Source #

class HasHasPrecommit s a | s -> a where Source #

Methods

has_precommit :: Lens' s a Source #

class HasLinkfun s a | s -> a where Source #

Methods

linkfun :: Lens' s a Source #

class HasOldVclock s a | s -> a where Source #

Methods

old_vclock :: Lens' s a Source #

class HasPostcommit s a | s -> a where Source #

Methods

postcommit :: Lens' s a Source #

class HasPrecommit s a | s -> a where Source #

Methods

precommit :: Lens' s a Source #

class HasRepl s a | s -> a where Source #

Methods

repl :: Lens' s a Source #

class HasRw s a | s -> a where Source #

Methods

rw :: Lens' s a Source #

class HasSearch s a | s -> a where Source #

Methods

search :: Lens' s a Source #

class HasSmallVclock s a | s -> a where Source #

Methods

small_vclock :: Lens' s a Source #

class HasWriteOnce s a | s -> a where Source #

Methods

write_once :: Lens' s a Source #

class HasYoungVclock s a | s -> a where Source #

Methods

young_vclock :: Lens' s a Source #

class HasBucket s a | s -> a where Source #

Methods

bucket :: Lens' s a Source #

Instances
HasBucket DtUpdateRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket SetBucketRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket ResetBucketRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket PutRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket ListKeysRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket IndexRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket GetRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket GetBucketRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket GetBucketKeyPreflistRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket DtFetchRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket DeleteRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket CounterUpdateRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket CounterGetRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket CSBucketRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasBucket Link (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasEndIncl s a | s -> a where Source #

Methods

end_incl :: Lens' s a Source #

class HasEndKey s a | s -> a where Source #

Methods

end_key :: Lens' s a Source #

class HasStartIncl s a | s -> a where Source #

Methods

start_incl :: Lens' s a Source #

class HasStartKey s a | s -> a where Source #

Methods

start_key :: Lens' s a Source #

class HasTimeout s a | s -> a where Source #

Methods

timeout :: Lens' s a Source #

Instances
HasTimeout YzIndexPutRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout TsListKeysRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout TsGetRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout TsDeleteRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout DtUpdateRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout PutRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout ListKeysRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout ListBucketsRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout IndexRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout GetRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout DtFetchRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout DeleteRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasTimeout CSBucketRequest (Maybe Word32) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasType' s a | s -> a where Source #

Methods

type' :: Lens' s a Source #

Instances
HasType' TsColumnDescription TsColumnType Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' DtUpdateRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' SetBucketTypeRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' DtFetchResponse DataType Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' MapField MapFieldType Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' GetBucketTypeRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' DtFetchRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' SetBucketRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' ResetBucketRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' PutRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' ListKeysRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' ListBucketsRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' IndexRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' GetRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' GetBucketRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' GetBucketKeyPreflistRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' DeleteRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasType' CSBucketRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasObjects s a | s -> a where Source #

Methods

objects :: Lens' s a Source #

class HasModfun s a | s -> a where Source #

Methods

modfun :: Lens' s a Source #

class HasCharset s a | s -> a where Source #

Methods

charset :: Lens' s a Source #

class HasDeleted s a | s -> a where Source #

Methods

deleted :: Lens' s a Source #

Instances
HasDeleted Content (Maybe Bool) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasIndexes s a | s -> a where Source #

Methods

indexes :: Lens' s a Source #

Instances
HasIndexes Content (Seq Pair) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasLastMod s a | s -> a where Source #

Methods

last_mod :: Lens' s a Source #

class HasLastModUsecs s a | s -> a where Source #

class HasLinks s a | s -> a where Source #

Methods

links :: Lens' s a Source #

class HasUsermeta s a | s -> a where Source #

Methods

usermeta :: Lens' s a Source #

Instances
HasUsermeta Content (Seq Pair) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasVtag s a | s -> a where Source #

Methods

vtag :: Lens' s a Source #

class HasKey s a | s -> a where Source #

Methods

key :: Lens' s a Source #

Instances
HasKey IndexObject ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey Pair ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey GetRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey GetBucketKeyPreflistRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey DtFetchRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey DeleteRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey CounterUpdateRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey CounterGetRequest ByteString Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey TsGetRequest (Seq TsCell) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey TsDeleteRequest (Seq TsCell) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey DtUpdateRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey PutResponse (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey PutRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey DtUpdateResponse (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey Link (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

HasKey IndexRequest (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasIncrement s a | s -> a where Source #

Methods

increment :: Lens' s a Source #

class HasAmount s a | s -> a where Source #

Methods

amount :: Lens' s a Source #

class HasMapOp s a | s -> a where Source #

Methods

map_op :: Lens' s a Source #

class HasSetOp s a | s -> a where Source #

Methods

set_op :: Lens' s a Source #

class HasOp s a | s -> a where Source #

Methods

op :: Lens' s a Source #

class HasErrcode s a | s -> a where Source #

Methods

errcode :: Lens' s a Source #

class HasErrmsg s a | s -> a where Source #

Methods

errmsg :: Lens' s a Source #

class HasDeletedvclock s a | s -> a where Source #

Methods

deletedvclock :: Lens' s a Source #

class HasHead s a | s -> a where Source #

Methods

head :: Lens' s a Source #

Instances
HasHead GetRequest (Maybe Bool) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasIfModified s a | s -> a where Source #

Methods

if_modified :: Lens' s a Source #

class HasUnchanged s a | s -> a where Source #

Methods

unchanged :: Lens' s a Source #

class HasObject s a | s -> a where Source #

Methods

object :: Lens' s a Source #

class HasQtype s a | s -> a where Source #

Methods

qtype :: Lens' s a Source #

class HasRangeMax s a | s -> a where Source #

Methods

range_max :: Lens' s a Source #

class HasRangeMin s a | s -> a where Source #

Methods

range_min :: Lens' s a Source #

class HasReturnTerms s a | s -> a where Source #

Methods

return_terms :: Lens' s a Source #

class HasTermRegex s a | s -> a where Source #

Methods

term_regex :: Lens' s a Source #

class HasResults s a | s -> a where Source #

Methods

results :: Lens' s a Source #

class HasTag s a | s -> a where Source #

Methods

tag :: Lens' s a Source #

Instances
HasTag Link (Maybe ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasBuckets s a | s -> a where Source #

Methods

buckets :: Lens' s a Source #

class HasField s a | s -> a where Source #

Methods

field :: Lens' s a Source #

class HasFlagValue s a | s -> a where Source #

Methods

flag_value :: Lens' s a Source #

class HasRemoves s a | s -> a where Source #

Methods

removes :: Lens' s a Source #

class HasUpdates s a | s -> a where Source #

Methods

updates :: Lens' s a Source #

Instances
HasUpdates MapOp (Seq MapUpdate) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasPhase s a | s -> a where Source #

Methods

phase :: Lens' s a Source #

class HasResponse s a | s -> a where Source #

Methods

response :: Lens' s a Source #

class HasRequest s a | s -> a where Source #

Methods

request :: Lens' s a Source #

class HasFlagOp s a | s -> a where Source #

Methods

flag_op :: Lens' s a Source #

class HasRegisterOp s a | s -> a where Source #

Methods

register_op :: Lens' s a Source #

class HasFunction s a | s -> a where Source #

Methods

function :: Lens' s a Source #

class HasModule' s a | s -> a where Source #

Methods

module' :: Lens' s a Source #

class HasAsis s a | s -> a where Source #

Methods

asis :: Lens' s a Source #

Instances
HasAsis PutRequest (Maybe Bool) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasIfNoneMatch s a | s -> a where Source #

Methods

if_none_match :: Lens' s a Source #

class HasReturnHead s a | s -> a where Source #

Methods

return_head :: Lens' s a Source #

class HasFields s a | s -> a where Source #

Methods

fields :: Lens' s a Source #

Instances
HasFields SearchDoc (Seq Pair) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasDf s a | s -> a where Source #

Methods

df :: Lens' s a Source #

class HasFilter s a | s -> a where Source #

Methods

filter :: Lens' s a Source #

class HasFl s a | s -> a where Source #

Methods

fl :: Lens' s a Source #

class HasQ s a | s -> a where Source #

Methods

q :: Lens' s a Source #

class HasSort s a | s -> a where Source #

Methods

sort :: Lens' s a Source #

class HasStart s a | s -> a where Source #

Methods

start :: Lens' s a Source #

class HasDocs s a | s -> a where Source #

Methods

docs :: Lens' s a Source #

class HasMaxScore s a | s -> a where Source #

Methods

max_score :: Lens' s a Source #

class HasAdds s a | s -> a where Source #

Methods

adds :: Lens' s a Source #

Instances
HasAdds SetOp (Seq ByteString) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens

class HasBooleanValue s a | s -> a where Source #

Methods

boolean_value :: Lens' s a Source #

class HasDoubleValue s a | s -> a where Source #

Methods

double_value :: Lens' s a Source #

class HasSint64Value s a | s -> a where Source #

Methods

sint64_value :: Lens' s a Source #

class HasTimestampValue s a | s -> a where Source #

class HasVarcharValue s a | s -> a where Source #

Methods

varchar_value :: Lens' s a Source #

class HasIp s a | s -> a where Source #

Methods

ip :: Lens' s a Source #

class HasPort s a | s -> a where Source #

Methods

port :: Lens' s a Source #

class HasRange s a | s -> a where Source #

Methods

range :: Lens' s a Source #

class HasBase s a | s -> a where Source #

Methods

base :: Lens' s a Source #

class HasDesc s a | s -> a where Source #

Methods

desc :: Lens' s a Source #

class HasFieldName s a | s -> a where Source #

Methods

field_name :: Lens' s a Source #

class HasLowerBound s a | s -> a where Source #

Methods

lower_bound :: Lens' s a Source #

class HasUpperBound s a | s -> a where Source #

Methods

upper_bound :: Lens' s a Source #

class HasCells s a | s -> a where Source #

Methods

cells :: Lens' s a Source #

Instances
HasCells TsRow (Seq TsCell) Source # 
Instance details

Defined in Network.Riak.Protocol.Lens