server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 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 {
	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