server

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

View Source
const StatusClientClosed = 499

Variables

View Source
var InterruptFlags = []os.Signal{os.Interrupt}

This is just here to allow tests to specify a different signal to send to kill the webserver not useful in practice due to OS-specific nature of signals

Functions

func ListenAndServe

func ListenAndServe(config *config.Config, layerGroup *layer.LayerGroup, auth authentication.Authentication, reloadPtr *func(*config.Config, *layer.LayerGroup, authentication.Authentication) error) error

func SetupHealth added in v0.8.0

func SetupHealth(ctx context.Context, cfg *config.Config, layerGroup *layer.LayerGroup) (func(context.Context) error, error)

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

func (MultiHandler) Enabled added in v0.6.0

func (h MultiHandler) Enabled(c context.Context, l slog.Level) bool

func (MultiHandler) Handle added in v0.6.0

func (h MultiHandler) Handle(c context.Context, r slog.Record) error

func (MultiHandler) WithAttrs added in v0.6.0

func (h MultiHandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (MultiHandler) WithGroup added in v0.6.0

func (h MultiHandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL