Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- apiVersion :: ByteString
- defaultPort :: PortNumber
- type IndexName = ByteString
- data FranzException
- data RequestType
- data ItemRef
- data Query = Query {
- reqStream :: !ByteString
- reqFrom :: !ItemRef
- reqTo :: !ItemRef
- reqType :: !RequestType
- data RawRequest
- type ResponseId = Int
- data ResponseHeader
- data PayloadHeader = PayloadHeader !Int !Int !Int ![ByteString]
Documentation
type IndexName = ByteString Source #
data FranzException Source #
MalformedRequest !String | |
StreamNotFound !FilePath | |
IndexNotFound !IndexName ![IndexName] | |
InternalError !String | |
ClientError !String |
Instances
data RequestType Source #
Instances
Show RequestType Source # | |
Defined in Database.Franz.Protocol showsPrec :: Int -> RequestType -> ShowS # show :: RequestType -> String # showList :: [RequestType] -> ShowS # | |
Generic RequestType Source # | |
Defined in Database.Franz.Protocol type Rep RequestType :: Type -> Type # from :: RequestType -> Rep RequestType x # to :: Rep RequestType x -> RequestType # | |
Serialize RequestType Source # | |
Defined in Database.Franz.Protocol put :: Putter RequestType # get :: Get RequestType # | |
type Rep RequestType Source # | |
Instances
Show ItemRef Source # | |
Generic ItemRef Source # | |
Serialize ItemRef Source # | |
type Rep ItemRef Source # | |
Defined in Database.Franz.Protocol type Rep ItemRef = D1 (MetaData "ItemRef" "Database.Franz.Protocol" "franz-0.3.0.1-4eG3N4JtDSvJ7a7VTycdfn" False) (C1 (MetaCons "BySeqNum" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) :+: C1 (MetaCons "ByIndex" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 IndexName) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))) |
Query | |
|
Instances
Show Query Source # | |
Generic Query Source # | |
Serialize Query Source # | |
type Rep Query Source # | |
Defined in Database.Franz.Protocol type Rep Query = D1 (MetaData "Query" "Database.Franz.Protocol" "franz-0.3.0.1-4eG3N4JtDSvJ7a7VTycdfn" False) (C1 (MetaCons "Query" PrefixI True) ((S1 (MetaSel (Just "reqStream") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString) :*: S1 (MetaSel (Just "reqFrom") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ItemRef)) :*: (S1 (MetaSel (Just "reqTo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ItemRef) :*: S1 (MetaSel (Just "reqType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RequestType)))) |
data RawRequest Source #
Instances
Generic RawRequest Source # | |
Defined in Database.Franz.Protocol type Rep RawRequest :: Type -> Type # from :: RawRequest -> Rep RawRequest x # to :: Rep RawRequest x -> RawRequest # | |
Serialize RawRequest Source # | |
Defined in Database.Franz.Protocol put :: Putter RawRequest # get :: Get RawRequest # | |
type Rep RawRequest Source # | |
Defined in Database.Franz.Protocol type Rep RawRequest = D1 (MetaData "RawRequest" "Database.Franz.Protocol" "franz-0.3.0.1-4eG3N4JtDSvJ7a7VTycdfn" False) (C1 (MetaCons "RawRequest" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResponseId) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Query)) :+: C1 (MetaCons "RawClean" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResponseId))) |
type ResponseId = Int Source #
data ResponseHeader Source #
Response !ResponseId | response ID, number of streams; there are items satisfying the query |
ResponseWait !ResponseId | response ID; requested elements are not available right now |
ResponseError !ResponseId !FranzException | something went wrong |
Instances
data PayloadHeader Source #
Initial seqno, final seqno, base offset, index names
PayloadHeader !Int !Int !Int ![ByteString] |
Instances
Serialize PayloadHeader Source # | |
Defined in Database.Franz.Protocol put :: Putter PayloadHeader # get :: Get PayloadHeader # |