Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.GRPC.Common.StreamType
Contents
Description
Handlers for specific communication patterns
The gRPC specification does not distinguish between different kinds of communication patterns; this is done in the Protobuf specification. Nonetheless, these streaming types can be applied to other serialization formats also.
It is important to realize that these wrappers are simple and are provided for convenience only; if they do not provide the functionality you require, using the more general interface from Network.GRPC.Client or Network.GRPC.Server is not much more difficult.
See Network.GRPC.Client for additional discussion.
Synopsis
- data StreamingType
- class ValidStreamingType styp => SupportsStreamingType (rpc :: k) (styp :: StreamingType)
- class SupportsStreamingType rpc (RpcStreamingType rpc) => HasStreamingType (rpc :: k) where
- type RpcStreamingType (rpc :: k) :: StreamingType
Abstraction
data StreamingType #
Data type to be used as a promoted type for MethodStreamingType
.
Constructors
NonStreaming | |
ClientStreaming | |
ServerStreaming | |
BiDiStreaming |
Instances
class ValidStreamingType styp => SupportsStreamingType (rpc :: k) (styp :: StreamingType) #
Instances
ValidStreamingType styp => SupportsStreamingType (JsonRpc serv meth :: Type) styp | |
Defined in Network.GRPC.Spec.RPC.JSON | |
(styp ~ MethodStreamingType serv meth, ValidStreamingType styp) => SupportsStreamingType (Protobuf serv meth :: Type) styp | |
Defined in Network.GRPC.Spec.RPC.Protobuf | |
ValidStreamingType styp => SupportsStreamingType (RawRpc serv meth :: Type) styp | |
Defined in Network.GRPC.Spec.RPC.Raw |
class SupportsStreamingType rpc (RpcStreamingType rpc) => HasStreamingType (rpc :: k) #
Associated Types
type RpcStreamingType (rpc :: k) :: StreamingType #
Instances
ValidStreamingType (MethodStreamingType serv meth) => HasStreamingType (Protobuf serv meth :: Type) | |||||
Defined in Network.GRPC.Spec.RPC.Protobuf Associated Types
|