Export new config options.

This commit is contained in:
Jay
2026-04-23 18:54:00 -04:00
parent 2a6cd3a487
commit a3c1e684be
+35 -25
View File
@@ -84,15 +84,17 @@ func NewConnectionConfig(opts ...ConnectionOption) (*ConnectionConfig, error) {
// Connection options // Connection options
var ( var (
WithIncomingBufferSize = transport.WithIncomingBufferSize WithIncomingBufferSize = transport.WithIncomingBufferSize
WithErrorsBufferSize = transport.WithErrorsBufferSize WithErrorsBufferSize = transport.WithErrorsBufferSize
WithoutRetry = transport.WithoutRetry WithoutRetry = transport.WithoutRetry
WithRetryMaxRetries = transport.WithRetryMaxRetries WithRetryMaxRetries = transport.WithRetryMaxRetries
WithRetryInitialDelay = transport.WithRetryInitialDelay WithRetryInitialDelay = transport.WithRetryInitialDelay
WithRetryMaxDelay = transport.WithRetryMaxDelay WithRetryMaxDelay = transport.WithRetryMaxDelay
WithRetryJitterFactor = transport.WithRetryJitterFactor WithRetryJitterFactor = transport.WithRetryJitterFactor
WithWriteTimeout = transport.WithWriteTimeout WithWriteTimeout = transport.WithWriteTimeout
WithCloseHandler = transport.WithCloseHandler WithCloseHandler = transport.WithCloseHandler
WithConnectionLoggingEnabled = transport.WithLoggingEnabled
WithConnectionLogLevel = transport.WithLogLevel
) )
// Outbound Pool constructors // Outbound Pool constructors
@@ -112,19 +114,23 @@ func NewOutboundWorkerConfig(opts ...OutboundWorkerOption) (*OutboundWorkerConfi
// Outbound Pool options // Outbound Pool options
var ( var (
WithOutboundInboxBufferSize = outbound.WithInboxBufferSize WithOutboundInboxBufferSize = outbound.WithInboxBufferSize
WithOutboundEventsBufferSize = outbound.WithEventsBufferSize WithOutboundEventsBufferSize = outbound.WithEventsBufferSize
WithOutboundErrorsBufferSize = outbound.WithErrorsBufferSize WithOutboundErrorsBufferSize = outbound.WithErrorsBufferSize
WithOutboundConnectionConfig = outbound.WithConnectionConfig WithOutboundPoolLoggingEnabled = outbound.WithPoolLoggingEnabled
WithOutboundWorkerConfig = outbound.WithWorkerConfig WithOutboundPoolLogLevel = outbound.WithPoolLogLevel
WithOutboundWorkerFactory = outbound.WithWorkerFactory WithOutboundConnectionConfig = outbound.WithConnectionConfig
WithOutboundWorkerConfig = outbound.WithWorkerConfig
WithOutboundWorkerFactory = outbound.WithWorkerFactory
) )
// Outbound Worker options // Outbound Worker options
var ( var (
WithOutboundKeepaliveTimeout = outbound.WithKeepaliveTimeout WithOutboundKeepaliveTimeout = outbound.WithKeepaliveTimeout
WithOutboundMaxQueueSize = outbound.WithMaxQueueSize WithOutboundMaxQueueSize = outbound.WithMaxQueueSize
WithOutboundWorkerLoggingEnabled = outbound.WithWorkerLoggingEnabled
WithOutboundWorkerLogLevel = outbound.WithWorkerLogLevel
) )
// Inbound Pool constructors // Inbound Pool constructors
@@ -144,19 +150,23 @@ func NewInboundWorkerConfig(opts ...InboundWorkerOption) (*InboundWorkerConfig,
// Inbound Pool options // Inbound Pool options
var ( var (
WithInboundInboxBufferSize = inbound.WithInboxBufferSize WithInboundInboxBufferSize = inbound.WithInboxBufferSize
WithInboundEventsBufferSize = inbound.WithEventsBufferSize WithInboundEventsBufferSize = inbound.WithEventsBufferSize
WithInboundErrorsBufferSize = inbound.WithErrorsBufferSize WithInboundErrorsBufferSize = inbound.WithErrorsBufferSize
WithInboundConnectionConfig = inbound.WithConnectionConfig WithInboundPoolLoggingEnabled = inbound.WithPoolLoggingEnabled
WithInboundWorkerConfig = inbound.WithWorkerConfig WithInboundPoolLogLevel = inbound.WithPoolLogLevel
WithInboundWorkerFactory = inbound.WithWorkerFactory WithInboundConnectionConfig = inbound.WithConnectionConfig
WithInboundWorkerConfig = inbound.WithWorkerConfig
WithInboundWorkerFactory = inbound.WithWorkerFactory
) )
// Inbound Worker options // Inbound Worker options
var ( var (
WithInboundInactivityTimeout = inbound.WithInactivityTimeout WithInboundInactivityTimeout = inbound.WithInactivityTimeout
WithInboundMaxQueueSize = inbound.WithMaxQueueSize WithInboundMaxQueueSize = inbound.WithMaxQueueSize
WithInboundWorkerLoggingEnabled = inbound.WithWorkerLoggingEnabled
WithInboundWorkerLogLevel = inbound.WithWorkerLogLevel
) )
// Socket type — needed for inbound pool.Add and pool.Replace // Socket type — needed for inbound pool.Add and pool.Replace