grapesy
Safe HaskellNone
LanguageHaskell2010

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

Abstraction

data StreamingType #

Data type to be used as a promoted type for MethodStreamingType.

Instances

Instances details
Bounded StreamingType 
Instance details

Defined in Data.ProtoLens.Service.Types

Enum StreamingType 
Instance details

Defined in Data.ProtoLens.Service.Types

Read StreamingType 
Instance details

Defined in Data.ProtoLens.Service.Types

Show StreamingType 
Instance details

Defined in Data.ProtoLens.Service.Types

Eq StreamingType 
Instance details

Defined in Data.ProtoLens.Service.Types

Ord StreamingType 
Instance details

Defined in Data.ProtoLens.Service.Types

class ValidStreamingType styp => SupportsStreamingType (rpc :: k) (styp :: StreamingType) #

Instances

Instances details
ValidStreamingType styp => SupportsStreamingType (JsonRpc serv meth :: Type) styp 
Instance details

Defined in Network.GRPC.Spec.RPC.JSON

(styp ~ MethodStreamingType serv meth, ValidStreamingType styp) => SupportsStreamingType (Protobuf serv meth :: Type) styp 
Instance details

Defined in Network.GRPC.Spec.RPC.Protobuf

ValidStreamingType styp => SupportsStreamingType (RawRpc serv meth :: Type) styp 
Instance details

Defined in Network.GRPC.Spec.RPC.Raw

class SupportsStreamingType rpc (RpcStreamingType rpc) => HasStreamingType (rpc :: k) #

Associated Types

type RpcStreamingType (rpc :: k) :: StreamingType #

Instances

Instances details
ValidStreamingType (MethodStreamingType serv meth) => HasStreamingType (Protobuf serv meth :: Type) 
Instance details

Defined in Network.GRPC.Spec.RPC.Protobuf

Associated Types

type RpcStreamingType (Protobuf serv meth :: Type) 
Instance details

Defined in Network.GRPC.Spec.RPC.Protobuf

type RpcStreamingType (Protobuf serv meth :: Type) = MethodStreamingType serv meth