server

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSL

type SSL struct {
	// contains filtered or unexported fields
}

func NewSSL

func NewSSL(keyPath, certPath string) (SSL, error)

func (SSL) CreateTLSConfig

func (s SSL) CreateTLSConfig() (*tls.Config, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is used to serve HTTP(S)

func New

func New(paths *path.Paths, ssl SSL, nf util.NotFound, serverPath, port, serverHeader, indexPath string, redirectHTTP bool) (Server, error)

New creates a new Server object

func (Server) Start

func (s Server) Start() error

Start makes the server begin listening

Jump to

Keyboard shortcuts

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