server

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureTLS

func ConfigureTLS(server *http.Server, settings *TLSSettings) error

func NewHTTPServer

func NewHTTPServer(settings *HTTPSettings, handler http.Handler) *http.Server

Types

type HTTPSettings

type HTTPSettings struct {
	Host           string
	Port           int
	TLSHost        string
	TLSPort        int
	UDSPath        string
	MaxHeaderSize  flagext.ByteSize
	KeepAlive      time.Duration
	ReadTimeout    time.Duration
	WriteTimeout   time.Duration
	CleanupTimeout time.Duration
}

type TLSSettings

type TLSSettings struct {
	TLSCertificate    string
	TLSCertificateKey string
	TLSCACertificate  string
}

Jump to

Keyboard shortcuts

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