server

package
v0.0.0-...-86b787e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTP

func HTTP(settings *models.Settings, n *negroni.Negroni) *http.Server

func HTTPS

func HTTPS(settings *models.Settings, mux http.Handler, db *storm.DB) (*http.Server, *http.Server)

func NewServers

func NewServers(sa *ServerAngel) (*http.Server, *http.Server)

func Run

func Run(overState overseer.State)

func RunServer

func RunServer(r chan bool, l chan models.LE) (*http.Server, *http.Server)

Types

type ServerAngel

type ServerAngel struct {
	AngelCtx    context.Context
	AngelCancel context.CancelFunc

	HttpServerCtx    context.Context
	HttpServerCancel context.CancelFunc

	HttpsServerCtx    context.Context
	HttpsServerCancel context.CancelFunc

	HttpServer  *http.Server
	HttpsServer *http.Server

	Reboot chan bool
	LE     chan models.LE
}

func NewServerAngel

func NewServerAngel() *ServerAngel

Jump to

Keyboard shortcuts

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