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

Mu.GRpc.Avro

Description

Intended for internal use.

This module provides the required instances of the common type classes from Bridge to make it work with Avro.

Synopsis

Documentation

data AvroRPC Source #

A proxy type for giving static information about RPCs. Intended for internal use.

Constructors

AvroRPC 

Instances

Instances details
IsRPC AvroRPC Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

path :: AvroRPC -> HeaderValue #

GRPCInput AvroRPC () Source # 
Instance details

Defined in Mu.GRpc.Avro

GRPCOutput AvroRPC () Source # 
Instance details

Defined in Mu.GRpc.Avro

(HasAvroSchema (WithSchema sch sty o), ToAvro (WithSchema sch sty o)) => GRPCInput AvroRPC (ViaToAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) o) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeInput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('SchemaRef sch sty) o -> Builder #

decodeInput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('SchemaRef sch sty) o)) #

(HasAvroSchema (WithSchema sch sty i), FromAvro (WithSchema sch sty i)) => GRPCInput AvroRPC (ViaFromAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) i) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeInput :: AvroRPC -> Compression -> ViaFromAvroTypeRef ('SchemaRef sch sty) i -> Builder #

decodeInput :: AvroRPC -> Compression -> Decoder (Either String (ViaFromAvroTypeRef ('SchemaRef sch sty) i)) #

(HasAvroSchema (WithSchema sch sty o), ToAvro (WithSchema sch sty o)) => GRPCOutput AvroRPC (ViaToAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) o) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeOutput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('SchemaRef sch sty) o -> Builder #

decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('SchemaRef sch sty) o)) #

(HasAvroSchema (WithSchema sch sty i), FromAvro (WithSchema sch sty i)) => GRPCOutput AvroRPC (ViaFromAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) i) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeOutput :: AvroRPC -> Compression -> ViaFromAvroTypeRef ('SchemaRef sch sty) i -> Builder #

decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaFromAvroTypeRef ('SchemaRef sch sty) i)) #

newtype ViaFromAvroTypeRef (ref :: TypeRef snm) t Source #

Wrapper used to tag a type with its corresponding TypeRef used for deserialization from Avro. Intended for internal use.

Constructors

ViaFromAvroTypeRef 

Instances

Instances details
(HasAvroSchema (WithSchema sch sty i), FromAvro (WithSchema sch sty i)) => GRPCInput AvroRPC (ViaFromAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) i) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeInput :: AvroRPC -> Compression -> ViaFromAvroTypeRef ('SchemaRef sch sty) i -> Builder #

decodeInput :: AvroRPC -> Compression -> Decoder (Either String (ViaFromAvroTypeRef ('SchemaRef sch sty) i)) #

(HasAvroSchema (WithSchema sch sty i), FromAvro (WithSchema sch sty i)) => GRPCOutput AvroRPC (ViaFromAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) i) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeOutput :: AvroRPC -> Compression -> ViaFromAvroTypeRef ('SchemaRef sch sty) i -> Builder #

decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaFromAvroTypeRef ('SchemaRef sch sty) i)) #

newtype ViaToAvroTypeRef (ref :: TypeRef snm) t Source #

Wrapper used to tag a type with its corresponding TypeRef used for serialization to Avro. Intended for internal use.

Constructors

ViaToAvroTypeRef 

Fields

Instances

Instances details
(HasAvroSchema (WithSchema sch sty o), ToAvro (WithSchema sch sty o)) => GRPCInput AvroRPC (ViaToAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) o) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeInput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('SchemaRef sch sty) o -> Builder #

decodeInput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('SchemaRef sch sty) o)) #

(HasAvroSchema (WithSchema sch sty o), ToAvro (WithSchema sch sty o)) => GRPCOutput AvroRPC (ViaToAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) o) Source # 
Instance details

Defined in Mu.GRpc.Avro

Methods

encodeOutput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('SchemaRef sch sty) o -> Builder #

decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('SchemaRef sch sty) o)) #

Orphan instances

Functor Decoder Source # 
Instance details

Methods

fmap :: (a -> b) -> Decoder a -> Decoder b #

(<$) :: a -> Decoder b -> Decoder a #