http

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package http is responsible for creating an HTTP server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an http.Server and its listener

func NewHTTPServer

func NewHTTPServer(address string, port int, router http.Handler) (*Server, error)

NewHTTPServer starts a logged http server on the given address

func (*Server) Close

func (srv *Server) Close() error

Close will shutdown the listener and the http server

func (*Server) Port

func (srv *Server) Port() int

Port of the listener

Directories

Path Synopsis
Package decorators contains general-purpose HTTP handler decorators
Package decorators contains general-purpose HTTP handler decorators

Jump to

Keyboard shortcuts

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