Documentation
¶
Index ¶
- Constants
- Variables
- func ListenAndServe(cfg *config.Config, ent *entities.Entities, onReady func(reloadEntitiesFunc)) error
- func SetupHealth(ctx context.Context, cfg *config.Config, layerGroup *layers.LayerGroup, ...) (func(context.Context) error, func(), error)
- func ValidateCacheControl(cfg config.CacheControlConfig, path string, errorMessages config.ErrorMessages) error
- func ValidateConfig(cfg *config.Config) error
- func ValidateHealthChecks(cfg *config.Config, ent *entities.Entities) error
- func ValidateTLS(ctx context.Context, cfg *config.Config, reg *tlsprofiles.Registry) error
- type CheckResult
- type MultiHandler
Constants ¶
View Source
const StatusClientClosed = 499
Variables ¶
Begin a graceful shutdown
Functions ¶
func ListenAndServe ¶
func ListenAndServe(cfg *config.Config, ent *entities.Entities, onReady func(reloadEntitiesFunc)) error
onReady, if set, receives the reload function once the server can accept reloads
func SetupHealth ¶ added in v0.8.0
func ValidateCacheControl ¶ added in v0.12.0
func ValidateCacheControl(cfg config.CacheControlConfig, path string, errorMessages config.ErrorMessages) error
path is the dotted prefix of the block so the message names the right place
func ValidateConfig ¶ added in v0.13.0
func ValidateHealthChecks ¶ added in v0.13.0
func ValidateTLS ¶ added in v0.15.0
Catches what ListenAndServe would reject, without reading deprecated certificate files config check never required
Types ¶
type CheckResult ¶ added in v0.8.0
type CheckResult struct {
// contains filtered or unexported fields
}
type MultiHandler ¶ added in v0.6.0
type MultiHandler struct {
// contains filtered or unexported fields
}
Fans every record out to its child handlers
Source Files
¶
- cache_control.go
- context_handler.go
- cors.go
- default_handler.go
- documentation_handler.go
- error.go
- favicon_handler.go
- forwarded.go
- generation.go
- health.go
- log.go
- multi_slog_handler.go
- opentelemetry.go
- preview_handler.go
- redirect_handler.go
- server.go
- shutdown.go
- tile_handler.go
- tilejson_handler.go
- timeout_handler.go
- tls.go
Click to show internal directories.
Click to hide internal directories.