server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServer

func InitServer(domain string) *http.Server

InitServer - Generates the http.Server configuration.

func Run

func Run(configFile string)

Run - Starts the GoProxyCache servers' listeners.

Types

type Servers

type Servers struct {
	HTTP  map[string]*http.Server
	HTTPS map[string]*http.Server
}

Servers - Contains the HTTP/HTTPS servers.

func (*Servers) AttachPlain

func (s *Servers) AttachPlain(port string, server *http.Server)

AttachPlain - Adds a new HTTP server in the listener container.

func (*Servers) AttachSecure

func (s *Servers) AttachSecure(port string, server *http.Server)

AttachSecure - Adds a new HTTPS server in the listener container.

func (*Servers) InitServers

func (s *Servers) InitServers(domain string, domainConfig config.Server)

InitServers - Returns a http.Server configuration for HTTP and HTTPS.

func (*Servers) StartDomainServer

func (s *Servers) StartDomainServer(domain string)

StartDomainServer - Configures and start listening for a particular domain.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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