server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2014 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

Types

type Server

type Server struct {
	http.Server
	*mux.Router
	DB *db.DB
	// contains filtered or unexported fields
}

Server represents an HTTP interface to the database.

func (*Server) Close

func (s *Server) Close()

Close closes the listening port and shutsdown the server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe opens the server's port and begins listening for requests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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