Safe Haskell | None |
---|---|
Language | Haskell2010 |
Intended for internal use.
This module provides the required instances of
the common type classes from Bridge
to make it work with Avro.
Synopsis
- data AvroRPC = AvroRPC {
- pkg :: ByteString
- srv :: ByteString
- meth :: ByteString
- newtype ViaFromAvroTypeRef (ref :: TypeRef snm) t = ViaFromAvroTypeRef {
- unViaFromAvroTypeRef :: t
- newtype ViaToAvroTypeRef (ref :: TypeRef snm) t = ViaToAvroTypeRef {
- unViaToAvroTypeRef :: t
Documentation
A proxy type for giving static information about RPCs. Intended for internal use.
AvroRPC | |
|
Instances
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.
Instances
(HasAvroSchema (WithSchema sch sty i), FromAvro (WithSchema sch sty i)) => GRPCInput AvroRPC (ViaFromAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) i) Source # | |
Defined in Mu.GRpc.Avro 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 # | |
Defined in Mu.GRpc.Avro 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.
Instances
(HasAvroSchema (WithSchema sch sty o), ToAvro (WithSchema sch sty o)) => GRPCInput AvroRPC (ViaToAvroTypeRef ('SchemaRef sch sty :: TypeRef snm) o) Source # | |
Defined in Mu.GRpc.Avro 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 # | |
Defined in Mu.GRpc.Avro encodeOutput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('SchemaRef sch sty) o -> Builder # decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('SchemaRef sch sty) o)) # |