server

package
v0.0.0-...-3055f9f Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *slog.Logger, cfg *Config) *http.Server

func NewListener

func NewListener(cfg *Config) (net.Listener, error)

Types

type Config

type Config struct {
	Host              string
	Port              int
	ReadHeaderTimeout time.Duration
	TLS               *TLSConfig
}

type TLSConfig

type TLSConfig struct {
	Enabled  bool
	CertFile string
	KeyFile  string
}

Jump to

Keyboard shortcuts

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