hw-kafka-avro-6.0.1: Avro support for Kafka infrastructure
Safe HaskellSafe-Inferred
LanguageHaskell2010

Kafka.Avro.SchemaRegistry

Synopsis

Documentation

newtype SchemaId Source #

Constructors

SchemaId 

Fields

newtype Subject Source #

Constructors

Subject 

Fields

Instances

Instances details
IsString Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Methods

fromString :: String -> Subject #

Generic Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Associated Types

type Rep Subject :: Type -> Type #

Methods

from :: Subject -> Rep Subject x #

to :: Rep Subject x -> Subject #

Show Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Eq Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Methods

(==) :: Subject -> Subject -> Bool #

(/=) :: Subject -> Subject -> Bool #

Ord Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Hashable Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Methods

hashWithSalt :: Int -> Subject -> Int #

hash :: Subject -> Int #

type Rep Subject Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

type Rep Subject = D1 ('MetaData "Subject" "Kafka.Avro.SchemaRegistry" "hw-kafka-avro-6.0.1-9xKlH5MT92ccUDxThnHgN" 'True) (C1 ('MetaCons "Subject" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSubject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Schema #

N.B. It is possible to create a Haskell value (of Schema type) that is not a valid Avro schema by violating one of the above or one of the conditions called out in validateSchema.

Bundled Patterns

pattern String' :: Schema 
pattern Bytes' :: Schema 
pattern Long' :: Schema 
pattern Int' :: Schema 

Instances

Instances details
FromJSON Schema 
Instance details

Defined in Data.Avro.Schema.Schema

ToJSON Schema 
Instance details

Defined in Data.Avro.Schema.Schema

Generic Schema 
Instance details

Defined in Data.Avro.Schema.Schema

Associated Types

type Rep Schema :: Type -> Type #

Methods

from :: Schema -> Rep Schema x #

to :: Rep Schema x -> Schema #

Show Schema 
Instance details

Defined in Data.Avro.Schema.Schema

NFData Schema 
Instance details

Defined in Data.Avro.Schema.Schema

Methods

rnf :: Schema -> () #

Eq Schema 
Instance details

Defined in Data.Avro.Schema.Schema

Methods

(==) :: Schema -> Schema -> Bool #

(/=) :: Schema -> Schema -> Bool #

Ord Schema 
Instance details

Defined in Data.Avro.Schema.Schema

type Rep Schema 
Instance details

Defined in Data.Avro.Schema.Schema

type Rep Schema = D1 ('MetaData "Schema" "Data.Avro.Schema.Schema" "avro-0.6.2.1-JkoXbURJcOMDTvX6Kr2HL1" 'False) (((C1 ('MetaCons "Null" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Boolean" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Int" 'PrefixI 'True) (S1 ('MetaSel ('Just "logicalTypeI") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogicalTypeInt))))) :+: ((C1 ('MetaCons "Long" 'PrefixI 'True) (S1 ('MetaSel ('Just "logicalTypeL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogicalTypeLong))) :+: C1 ('MetaCons "Float" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Double" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bytes" 'PrefixI 'True) (S1 ('MetaSel ('Just "logicalTypeB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogicalTypeBytes)))))) :+: (((C1 ('MetaCons "String" 'PrefixI 'True) (S1 ('MetaSel ('Just "logicalTypeS") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogicalTypeString))) :+: C1 ('MetaCons "Array" 'PrefixI 'True) (S1 ('MetaSel ('Just "item") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Schema))) :+: (C1 ('MetaCons "Map" 'PrefixI 'True) (S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Schema)) :+: C1 ('MetaCons "NamedType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TypeName)))) :+: ((C1 ('MetaCons "Record" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TypeName) :*: S1 ('MetaSel ('Just "aliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TypeName])) :*: (S1 ('MetaSel ('Just "doc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Field]))) :+: C1 ('MetaCons "Enum" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TypeName) :*: S1 ('MetaSel ('Just "aliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TypeName])) :*: (S1 ('MetaSel ('Just "doc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "symbols") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector Text))))) :+: (C1 ('MetaCons "Union" 'PrefixI 'True) (S1 ('MetaSel ('Just "options") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector Schema))) :+: C1 ('MetaCons "Fixed" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TypeName) :*: S1 ('MetaSel ('Just "aliases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [TypeName])) :*: (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "logicalTypeF") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogicalTypeFixed))))))))

newtype Version Source #

Constructors

Version 

Fields

Instances

Instances details
Show Version Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Eq Version Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Methods

(==) :: Version -> Version -> Bool #

(/=) :: Version -> Version -> Bool #

Ord Version Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Hashable Version Source # 
Instance details

Defined in Kafka.Avro.SchemaRegistry

Methods

hashWithSalt :: Int -> Version -> Int #

hash :: Version -> Int #