servers

package
v0.0.0-...-f68f8f3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerInfo

type ServerInfo struct {
	HTTP            *http.Server
	HTTPS           *http.Server
	HTTPSKeyFile    string
	HTTPSCertFile   string
	HasBothHandlers bool
	FastShutdown    bool
}

func New

func New(httpPort, httpsPort, HTTPSKeyFile, HTTPSCertFile string) *ServerInfo

func (*ServerInfo) ListenAndServe

func (s *ServerInfo) ListenAndServe()

func (*ServerInfo) Shutdown

func (s *ServerInfo) Shutdown() bool

Jump to

Keyboard shortcuts

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