mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-26 21:19:43 +01:00
Add Network.GRPC.Constants
.
This commit is contained in:
parent
3d4cad3279
commit
9219b498a9
2 changed files with 14 additions and 0 deletions
|
@ -19,6 +19,7 @@ cabal-version: >=1.10
|
|||
library
|
||||
exposed-modules:
|
||||
Network.GRPC
|
||||
Network.GRPC.Constants
|
||||
Network.GRPC.Time
|
||||
-- other-modules:
|
||||
-- other-extensions:
|
||||
|
|
13
src/Network/GRPC/Constants.hsc
Normal file
13
src/Network/GRPC/Constants.hsc
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Network.GRPC.Constants where
|
||||
|
||||
#include "grpc/grpc.h"
|
||||
|
||||
argEnableCensus = #const GRPC_ARG_ENABLE_CENSUS
|
||||
argMaxConcurrentStreams = #const GRPC_ARG_MAX_CONCURRENT_STREAMS
|
||||
argMaxMessageLength = #const GRPC_ARG_MAX_MESSAGE_LENGTH
|
||||
|
||||
writeBufferHint :: Int
|
||||
writeBufferHint = #const GRPC_WRITE_BUFFER_HINT
|
||||
|
||||
writeNoCompress :: Int
|
||||
writeNoCompress = #const GRPC_WRITE_NO_COMPRESS
|
Loading…
Reference in a new issue