server

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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