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

Mu.Quasi.ProtoBuf

Description

Read .proto files as a Schema. If you want to get the service definitions too, you should use GRpc instead.

Synopsis

Quasi-quoters for .proto files

protobuf :: String -> FilePath -> Q [Dec] Source #

Reads a .proto file and generates a Schema with all the message types, using the name given as first argument.

Only for internal use

protobufToDecls :: String -> ProtoBuf -> Q [Dec] Source #

Shared portion of Protocol Buffers and gRPC quasi-quoters.