function
WithServerOptions
Configure production socket and graceful-drain bounds.
Example
ridu.WithServerOptions(ridu.ServerOptions{
ShutdownTimeout: 20 * time.Second,
WorkerDrainTimeout: 30 * time.Second,
ReadinessDrainDelay: 5 * time.Second,
})Arguments
| Argument | Type | Description |
|---|---|---|
options | ServerOptions | Socket, readiness admission, shutdown, and worker-drain settings. |
Returns
An option to pass directly to ridu.Execute.
ExecuteOptionHow it works
Zero values select bounded production defaults. Repeating WithServerOptions replaces the complete value, so configure related bounds together.
Full signature
func WithServerOptions(options ServerOptions) ExecuteOptionRelated types
ServerOptionsSocket timeouts, graceful drain, and readiness admission.
ExecuteOptionOne opaque runtime option accepted by Execute.