Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(port uint16, builder func() *starbox.RunnerConfig) error
Start serves trusted, host-selected code on loopback. Hosts needing graceful cancellation or an explicit remote bind should use StartContext.
func StartContext ¶ added in v0.1.3
StartContext returns startup/serve errors to the host. Cancellation stops admission, cancels request execution, drains connections, then closes stragglers.
Types ¶
type Config ¶ added in v0.1.3
type Config struct {
Address string
MaxBodyBytes int64
MaxConcurrent int
RequestTimeout time.Duration
}
Config defines the host's HTTP admission and execution limits. All limits must be positive. They do not replace process isolation for untrusted code.
func DefaultConfig ¶ added in v0.1.3
DefaultConfig binds loopback and gives each request bounded input and time.