weblog

package
v2.4.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// The Listener used for incoming HTTP connections
	Listener net.Listener
	// Server may be changed before calling Start()
	Server *http.Server
	// base URL of form http://ipaddr:port with no trailing slash
	URL string
	// contains filtered or unexported fields
}

Server implements an HTTP server.

func NewServer

func NewServer(storageAdapter storage.Adapter) *Server

New returns a new HTTP Server. The caller should call Start to start it and Close when finished to shut it down.

func (*Server) Close

func (s *Server) Close()

Close closes the HTTP Server from listening for the inbound requests.

func (*Server) Start

func (s *Server) Start()

Start starts an HTTP server.

Jump to

Keyboard shortcuts

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