mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-06-26 22:48:35 +02:00
1d8f811906
* add ServiceOptions for generated servers * drop opt prefix in ServiceOptions fields * add default options * tweak exports, add docs * re-export stuff from Generated so that users need don't need to import lots of modules * remove threaded from library -- doesn't do anything * add defaultServiceOptions export * more exports * export GRPCMethodType
55 lines
953 B
Haskell
55 lines
953 B
Haskell
module Network.GRPC.HighLevel (
|
|
|
|
-- * Types
|
|
MetadataMap(..)
|
|
, MethodName(..)
|
|
, StatusDetails(..)
|
|
, StatusCode(..)
|
|
, GRPCIOError(..)
|
|
, GRPCImpl(..)
|
|
, MkHandler
|
|
, ServiceOptions(..)
|
|
|
|
-- * Server
|
|
, Handler(..)
|
|
, ServerOptions(..)
|
|
, defaultOptions
|
|
, serverLoop
|
|
, ServerCall(..)
|
|
, serverCallCancel
|
|
, serverCallIsExpired
|
|
|
|
-- * Client
|
|
, NormalRequestResult(..)
|
|
, ClientCall
|
|
, clientCallCancel
|
|
|
|
-- * Client and Server Auth
|
|
, AuthContext
|
|
, AuthProperty(..)
|
|
, getAuthProperties
|
|
, addAuthProperty
|
|
|
|
-- * Server Auth
|
|
, ServerSSLConfig(..)
|
|
, ProcessMeta
|
|
, AuthProcessorResult(..)
|
|
, SslClientCertificateRequestType(..)
|
|
|
|
-- * Client Auth
|
|
, ClientSSLConfig(..)
|
|
, ClientSSLKeyCertPair(..)
|
|
, ClientMetadataCreate
|
|
, ClientMetadataCreateResult(..)
|
|
, AuthMetadataContext(..)
|
|
|
|
-- * Streaming utilities
|
|
, StreamSend
|
|
, StreamRecv
|
|
)
|
|
where
|
|
|
|
import Network.GRPC.HighLevel.Server
|
|
import Network.GRPC.HighLevel.Generated
|
|
import Network.GRPC.LowLevel
|