reverseproxy

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(logger *slog.Logger) error

Start will start the server.

Types

type Config

type Config struct {
	Port         uint64         `koanf:"port"         validate:"port"`
	Host         string         `koanf:"host"         validate:"hostname|fqdn|ip"`
	CertFile     string         `koanf:"crt"          validate:"omitempty,file"`
	KeyFile      string         `koanf:"key"          validate:"omitempty,file"`
	ReadTimeout  config.Timeout `koanf:"readtimeout"  validate:"required,validateFn"`
	WriteTimeout config.Timeout `koanf:"writetimeout" validate:"required,validateFn"`
	IdleTimeout  config.Timeout `koanf:"idletimeout"  validate:"required,validateFn"`
	Key          string         `koanf:"key"          validate:"required,base64rawurl"`
	Salt         string         `koanf:"salt"         validate:"required,base64rawurl"`
}

Config contains the server configuration options.

Jump to

Keyboard shortcuts

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