Documentation
¶
Overview ¶
Package server provides HTTP server functionality for workers and coordinators.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Port is the port to listen on.
Port int
// ReadTimeout is the maximum duration for reading the request.
ReadTimeout time.Duration
// WriteTimeout is the maximum duration for writing the response.
WriteTimeout time.Duration
// IdleTimeout is the maximum duration to wait for the next request.
IdleTimeout time.Duration
// Logger is the logger for the server.
Logger *slog.Logger
}
Config configures the HTTP server.
Click to show internal directories.
Click to hide internal directories.