server

package
v0.0.0-...-6c0425d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package server provides http server related helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(host string, port int, certFile, keyFile string, handler http.Handler) error

ListenAndServe starts http or https server based on parameters.

It defaults to https server (http.ListenAndServeTLS) but if certFile and keyFile is both empty string it starts http server http.ListenAndServe.

Returns whatever error http.ListenAndServer* returns

Types

This section is empty.

Jump to

Keyboard shortcuts

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