Documentation
¶
Overview ¶
Package serverruntime owns shared server workers and HTTP lifecycle. Local discovery, operator sockets and deployment policy remain composition concerns.
Index ¶
Constants ¶
View Source
const (
ShutdownTimeout = 15 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(parent context.Context, store Worker, log io.Writer, bindings []Binding, ready func() error) error
Run joins processing and listener loops before returning, without closing the caller's store. HTTP requests drain within ShutdownTimeout; on expiry their connections close. Handlers must honor request cancellation.
Types ¶
Click to show internal directories.
Click to hide internal directories.