Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultServerMaxReceiveMessageSize = 1024 * 1024 * 4 DefaultServerMaxSendMessageSize = math.MaxInt32 )
Variables ¶
View Source
var DefaultKeepaliveParams = keepalive.ServerParameters{ Timeout: 10 * time.Second, }
View Source
var DefaultServerOptions = Options{ MaxReceiveMessageSize: DefaultServerMaxReceiveMessageSize, MaxSendMessageSize: DefaultServerMaxSendMessageSize, }
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Creds credentials.TransportCredentials Codec grpc.Codec Cp grpc.Compressor Dc grpc.Decompressor UnaryInt grpc.UnaryServerInterceptor StreamInt grpc.StreamServerInterceptor InTapHandle tap.ServerInHandle StatsHandler stats.Handler MaxConcurrentStreams uint32 MaxReceiveMessageSize int MaxSendMessageSize int UseHandlerImpl bool // use http.Handler-based server UnknownStreamDesc *grpc.StreamDesc KeepaliveParams keepalive.ServerParameters KeepalivePolicy keepalive.EnforcementPolicy InitialWindowSize int32 InitialConnWindowSize int32 WriteBufferSize int ReadBufferSize int }
Click to show internal directories.
Click to hide internal directories.