No description provided by the author
NewClient create rpc client with options.
No description provided by the author
NewMessageCodec create message codec.
NewMessageHandler create a message handler.
NewMessagePool create message pool.
NewRemoteBackend create a goetty connection based backend.
NewRPCServer create rpc server with options.
WithBackendBatchSendSize set the maximum number of messages to be sent together at each batch.
WithBackendBufferSize set the buffer size of the wait send chan.
WithBackendBusyBufferSize if len(writeC) >= size, backend is busy.
WithBackendConnectTimeout set the timeout for connect to remote.
WithBackendFilter set send filter func.
WithBackendFreeOrphansResponse setup free orphans response func.
WithBackendGoettyOptions set goetty connection options.
WithBackendHasPayloadResponse has payload response means read a response that hold a slice of data in the read buffer to avoid data copy.
WithBackendLogger set the backend logger.
WithBackendMetrics setup backend metrics.
WithBackendReadTimeout set read timeout for read loop.
WithBackendStreamBufferSize set buffer size for stream receive message chan.
WithClientCreateTaskChanSize set the buffer size of the chan that creates the Backend Task.
WithClientEnableAutoCreateBackend enable client to automatically create a backend in the background, when the links in the connection pool are used, if the pool has not reached the maximum number of links, it will automatically create them in the background to improve the latency of link creation.
WithClientInitBackends set the number of connections for the initialized backends.
WithClientLogger set client logger.
WithClientMaxBackendMaxIdleDuration set the maximum idle duration of the backend connection.
WithClientMaxBackendPerHost maximum number of connections per host.
WithCodecEnableChecksum enable checksum.
WithCodecEnableCompress enable compress body and payload.
WithCodecIntegrationHLC intrgration hlc.
WithCodecMaxBodySize set rpc max body size.
WithCodecPayloadCopyBufferSize set payload copy buffer size, if is a PayloadMessage.
WithDisconnectAfterRead used for testing.
WithHandleMessageFilter set filter func.
WithHandlerRespReleaseFunc sets the respReleaseFunc of the handler.
WithServerBatchSendSize set the maximum number of messages to be sent together at each batch.
WithServerDisableAutoCancelContext disable automatic cancel messaging for the context.
WithServerGoettyOptions set write filter func.
WithServerLogger set rpc server logger.
WithServerSessionBufferSize set the buffer size of the write response chan.
WithServerWriteFilter set write filter func.