server

package
v0.0.0-...-92255fb Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

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 acts as a front end to the application, allowing the entire application to be controlled directly from the web.

func New

func New(config *config.Config) (*Server, error)

New creates a new server bound to the address specified in the config. The server also acts as the central coordination point for the other objects, such as the scraper and twitter client.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP initializes the request (with context variables) and dispatches it to the appropriate handler.

Jump to

Keyboard shortcuts

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