mu-grpc-client-0.2.0.0: gRPC clients from Mu definitions
Safe HaskellNone
LanguageHaskell2010

Mu.GRpc.Client.Optics

Description

For further information over initialization of the connection, consult the http2-client-grpc docs.

Synopsis

Initialization of the gRPC client

data GRpcConnection (s :: Service Symbol Symbol) (p :: GRpcMessageProtocol) Source #

Represents a connection to the service s.

Instances

Instances details
(SearchMethodOptic p methods m t, KnownName serviceName, KnownName (FindPackageName anns), KnownName m, MkRPC p) => LabelOptic m A_Getter (GRpcConnection ('Service serviceName anns methods) p) (GRpcConnection ('Service serviceName anns methods) p) t t Source # 
Instance details

Defined in Mu.GRpc.Client.Optics

Methods

labelOptic :: Optic A_Getter NoIx (GRpcConnection ('Service serviceName anns methods) p) (GRpcConnection ('Service serviceName anns methods) p) t t #

initGRpc Source #

Arguments

:: GrpcClientConfig

gRPC configuration

-> Proxy p 
-> forall s. IO (Either ClientError (GRpcConnection s p)) 

Initializes a connection to a gRPC server. Usually the service you are connecting to is inferred from the usage later on. However, it can also be made explicit by using

initGRpc config @Service

data GrpcClientConfig #

Configuration to setup a GrpcClient.

Request arguments and responses

data GRpcReply a Source #

Instances

Instances details
Functor GRpcReply Source # 
Instance details

Defined in Mu.GRpc.Client.Internal

Methods

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

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

Show a => Show (GRpcReply a) Source # 
Instance details

Defined in Mu.GRpc.Client.Internal

Re-exported for convenience