mu-protobuf-0.4.2.0: Protocol Buffers serialization and gRPC schema import for Mu microservices
Safe HaskellNone
LanguageHaskell2010

Mu.Quasi.ProtoBuf.Example

Description

Look at the source code of this module.

Documentation

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

type Example2ProtoBufSchema = '['DEnum "gender" '['ChoiceDef "male", 'ChoiceDef "female", 'ChoiceDef "nonbinary"], 'DRecord "person" '['FieldDef "names" ('TList ('TPrimitive Text)), 'FieldDef "age" ('TPrimitive Int32), 'FieldDef "gender" ('TSchematic "gender")]] Source #