mu-avro-0.4.0.4: Avro serialization support for Mu microservices
Safe HaskellNone
LanguageHaskell2010

Mu.Quasi.Avro.Example

Description

Look at the source code of this module.

Documentation

type Example = '['DRecord "person" '['FieldDef "firstName" ('TPrimitive Text), 'FieldDef "lastName" ('TPrimitive Text), 'FieldDef "age" ('TOption ('TPrimitive Int64)), 'FieldDef "gender" ('TOption ('TSchematic "gender")), 'FieldDef "address" ('TSchematic "address")], 'DEnum "gender" '['ChoiceDef "male", 'ChoiceDef "female", 'ChoiceDef "nb"], 'DRecord "address" '['FieldDef "postcode" ('TPrimitive Text), 'FieldDef "country" ('TPrimitive Text)]] Source #

type ExampleFromFile = '['DRecord "person" '['FieldDef "firstName" ('TPrimitive Text), 'FieldDef "lastName" ('TPrimitive Text), 'FieldDef "age" ('TOption ('TPrimitive Int64)), 'FieldDef "gender" ('TOption ('TSchematic "gender")), 'FieldDef "address" ('TSchematic "address"), 'FieldDef "lucky_numbers" ('TList ('TPrimitive Int64)), 'FieldDef "things" ('TSchematic "map")], 'DEnum "gender" '['ChoiceDef "male", 'ChoiceDef "female", 'ChoiceDef "nb"], 'DRecord "address" '['FieldDef "postcode" ('TPrimitive Text), 'FieldDef "country" ('TPrimitive Text)]] Source #

type ExampleProtocol = '['DRecord "DuplicatedPersonError" '['FieldDef "message" ('TPrimitive Text)], 'DRecord "NotFoundError" '['FieldDef "message" ('TPrimitive Text)], 'DRecord "PeopleRequest" '['FieldDef "name" ('TPrimitive Text)], 'DRecord "PeopleResponse" '['FieldDef "result" ('TUnion '['TSchematic "Person", 'TSchematic "NotFoundError", 'TSchematic "DuplicatedPersonError"])], 'DRecord "Person" '['FieldDef "name" ('TPrimitive Text), 'FieldDef "age" ('TPrimitive Int32), 'FieldDef "things" ('TMap ('TPrimitive Text) ('TPrimitive Int32))]] Source #

type ExampleService = 'Package ('Just "example.seed.server.protocol.avro") '['Service "Service" '['Method "getPerson" '['ArgSingle ('Nothing :: Maybe Symbol) ('SchemaRef ExampleProtocol "PeopleRequest")] ('RetSingle ('SchemaRef ExampleProtocol "PeopleResponse"))]] Source #