Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AvroRPC = AvroRPC {
- pkg :: ByteString
- srv :: ByteString
- meth :: ByteString
- newtype ViaFromAvroTypeRef (ref :: TypeRef) t = ViaFromAvroTypeRef {
- unViaFromAvroTypeRef :: t
- newtype ViaToAvroTypeRef (ref :: TypeRef) t = ViaToAvroTypeRef {
- unViaToAvroTypeRef :: t
Documentation
A proxy type for giving static information about RPCs.
AvroRPC | |
|
Instances
newtype ViaFromAvroTypeRef (ref :: TypeRef) t Source #
Instances
(FromSchema Identity sch sty i, FromAvro (Term Identity sch (sch :/: sty))) => GRPCInput AvroRPC (ViaFromAvroTypeRef ('ViaSchema sch sty) i) Source # | |
Defined in Mu.GRpc.Avro encodeInput :: AvroRPC -> Compression -> ViaFromAvroTypeRef ('ViaSchema sch sty) i -> Builder # decodeInput :: AvroRPC -> Compression -> Decoder (Either String (ViaFromAvroTypeRef ('ViaSchema sch sty) i)) # | |
(FromSchema Identity sch sty i, FromAvro (Term Identity sch (sch :/: sty))) => GRPCOutput AvroRPC (ViaFromAvroTypeRef ('ViaSchema sch sty) i) Source # | |
Defined in Mu.GRpc.Avro encodeOutput :: AvroRPC -> Compression -> ViaFromAvroTypeRef ('ViaSchema sch sty) i -> Builder # decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaFromAvroTypeRef ('ViaSchema sch sty) i)) # |
newtype ViaToAvroTypeRef (ref :: TypeRef) t Source #
Instances
(ToSchema Identity sch sty o, ToAvro (Term Identity sch (sch :/: sty))) => GRPCInput AvroRPC (ViaToAvroTypeRef ('ViaSchema sch sty) o) Source # | |
Defined in Mu.GRpc.Avro encodeInput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('ViaSchema sch sty) o -> Builder # decodeInput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('ViaSchema sch sty) o)) # | |
(ToSchema Identity sch sty o, ToAvro (Term Identity sch (sch :/: sty))) => GRPCOutput AvroRPC (ViaToAvroTypeRef ('ViaSchema sch sty) o) Source # | |
Defined in Mu.GRpc.Avro encodeOutput :: AvroRPC -> Compression -> ViaToAvroTypeRef ('ViaSchema sch sty) o -> Builder # decodeOutput :: AvroRPC -> Compression -> Decoder (Either String (ViaToAvroTypeRef ('ViaSchema sch sty) o)) # |