Documentation
¶
Index ¶
- Constants
- Variables
- func ListenAndServe(config *config.Config, ent *entities.Entities, ...) error
- func SetupHealth(ctx context.Context, cfg *config.Config, layerGroup *layer.LayerGroup, ...) (func(context.Context) error, func(), error)
- func ValidateCORS(cfg config.CORSConfig, errorMessages config.ErrorMessages) error
- func ValidateCacheControl(cfg config.CacheControlConfig, path string, errorMessages config.ErrorMessages) error
- type CheckResult
- type MultiHandler
Constants ¶
View Source
const StatusClientClosed = 499
Variables ¶
Signals that begin a graceful shutdown. SIGTERM is what container runtimes send on stop; without it the process dies on Go's default disposition and nothing gets flushed. Tests override this to send a signal they control.
Functions ¶
func ListenAndServe ¶
func SetupHealth ¶ added in v0.8.0
func ValidateCORS ¶ added in v0.12.0
func ValidateCORS(cfg config.CORSConfig, errorMessages config.ErrorMessages) error
func ValidateCacheControl ¶ added in v0.12.0
func ValidateCacheControl(cfg config.CacheControlConfig, path string, errorMessages config.ErrorMessages) error
The path is the dotted prefix the block was found at so the message names the right place
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
}
Simple slog.Handler that sends all requests to children handlers
Source Files
¶
Click to show internal directories.
Click to hide internal directories.