Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- apiVersion :: ByteString
- defaultPort :: PortNumber
- type IndexName = ByteString
- newtype StreamName = StreamName {}
- streamNameToPath :: StreamName -> FilePath
- data FranzException
- data RequestType
- data ItemRef
- data Query = Query {
- reqStream :: !StreamName
- reqFrom :: !ItemRef
- reqTo :: !ItemRef
- reqType :: !RequestType
- data RawRequest
- type ResponseId = Int
- data ResponseHeader
- data PayloadHeader = PayloadHeader !Int !Int !Int !(Vector IndexName)
Documentation
type IndexName = ByteString Source #
newtype StreamName Source #
Instances
data FranzException Source #
MalformedRequest !String | |
StreamNotFound !FilePath | |
IndexNotFound !IndexName ![IndexName] | |
InternalError !String | |
ClientError !String |
Instances
data RequestType Source #
Instances
Instances
Eq ItemRef Source # | |
Show ItemRef Source # | |
Generic ItemRef Source # | |
Serialize ItemRef Source # | |
type Rep ItemRef Source # | |
Defined in Database.Franz.Internal.Protocol type Rep ItemRef = D1 ('MetaData "ItemRef" "Database.Franz.Internal.Protocol" "franz-0.5.3-EuajUv7clyI2O3Dd5zy1gg" '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
Eq Query Source # | |
Show Query Source # | |
Generic Query Source # | |
Serialize Query Source # | |
type Rep Query Source # | |
Defined in Database.Franz.Internal.Protocol type Rep Query = D1 ('MetaData "Query" "Database.Franz.Internal.Protocol" "franz-0.5.3-EuajUv7clyI2O3Dd5zy1gg" 'False) (C1 ('MetaCons "Query" 'PrefixI 'True) ((S1 ('MetaSel ('Just "reqStream") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 StreamName) :*: 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.Internal.Protocol type Rep RawRequest :: Type -> Type # from :: RawRequest -> Rep RawRequest x # to :: Rep RawRequest x -> RawRequest # | |
Serialize RawRequest Source # | |
Defined in Database.Franz.Internal.Protocol put :: Putter RawRequest # get :: Get RawRequest # | |
type Rep RawRequest Source # | |
Defined in Database.Franz.Internal.Protocol type Rep RawRequest = D1 ('MetaData "RawRequest" "Database.Franz.Internal.Protocol" "franz-0.5.3-EuajUv7clyI2O3Dd5zy1gg" '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
Instances
Serialize PayloadHeader Source # | |
Defined in Database.Franz.Internal.Protocol put :: Putter PayloadHeader # get :: Get PayloadHeader # |