server

package
Version: v0.0.0-...-f2f702e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(httpHandler, httpsHandler http.Handler, srv *Server)

Run server

Types

type Server

type Server struct {
	Hostname  string `json:"hostname"`
	UseHTTP   bool   `json:"useHTTP"`
	UseHTTPS  bool   `json:"useHTTPS"`
	HTTPPort  int    `json:"HTTPPort"`
	HTTPSPort int    `json:"HTTPSPort"`
	CertFile  string `json:"certFile"`
	KeyFile   string `json:"keyFile"`
}

Server struct

func (Server) HTTPAddress

func (s Server) HTTPAddress() string

HTTPAddress for server

func (Server) HTTPSAddress

func (s Server) HTTPSAddress() string

HTTPSAddress for server

func (Server) StartHTTP

func (s Server) StartHTTP(handler http.Handler)

StartHTTP server

func (Server) StartHTTPS

func (s Server) StartHTTPS(handler http.Handler)

StartHTTPS server

Source Files

Jump to

Keyboard shortcuts

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