function
WithServerOptions
func WithServerOptions(options ServerOptions) ExecuteOptionConfigure production socket and graceful-drain bounds.
Zero values select bounded production defaults. Repeating WithServerOptions replaces the complete value, so configure related bounds together.
Example
ridu.WithServerOptions(ridu.ServerOptions{
ShutdownTimeout: 20 * time.Second,
WorkerDrainTimeout: 30 * time.Second,
ReadinessDrainDelay: 5 * time.Second,
})Related types
ServerOptionsSocket timeouts, graceful drain, and readiness admission.
ExecuteOptionOne opaque runtime option accepted by Execute.