mu-grpc-common-0.4.0.0: gRPC for Mu, common modules for client and server
Safe HaskellNone
LanguageHaskell2010

Mu.GRpc.Bridge

Description

Currently Protocol Buffers and Avro can be used as serialization format for the messages in gRPC requests and replies. This module provides types and proxies used in both mu-grpc-client and mu-grpc-server to drive this choice of serialization.

Synopsis

Documentation

data GRpcMessageProtocol Source #

Serialization formats supported with gRPC.

Constructors

MsgProtoBuf

Protocol Buffers.

MsgAvro

Avro.

msgProtoBuf :: Proxy 'MsgProtoBuf Source #

Choose Protocol Buffers as serialization format for gRPC. This value is commonly used to create a client or server.

msgAvro :: Proxy 'MsgAvro Source #

Choose Avro as serialization format for gRPC. This value is commonly used to create a client or server.

class MkRPC (p :: GRpcMessageProtocol) where Source #

Defines how to build serialization-specific RPC locators from a triple of (package, server, method).

Associated Types

type RPCTy p :: Type Source #

Instances

Instances details
MkRPC 'MsgProtoBuf Source # 
Instance details

Defined in Mu.GRpc.Bridge

Associated Types

type RPCTy 'MsgProtoBuf Source #

MkRPC 'MsgAvro Source # 
Instance details

Defined in Mu.GRpc.Bridge

Associated Types

type RPCTy 'MsgAvro Source #