app

package
v0.0.0-...-f18cc39 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2013 License: BSD-3-Clause, MIT Imports: 10 Imported by: 0

Documentation

Overview

The `babou` web application server.

The application package includes both a server implementation and a router. The web application itself is included in various sub-packages, and is loaded by the router once the server has started.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRoutes

func LoadRoutes(s *Server) *mux.Router

Types

type Server

type Server struct {
	Port int

	AppBridge   *bridge.Bridge        // Event bridge this server can use to comm. with other trackers.
	AppSettings *libBabou.AppSettings // Settings this server was started with
	// contains filtered or unexported fields
}

Parameters for babou's web server

func NewServer

func NewServer(appSettings *libBabou.AppSettings, bridge *bridge.Bridge, serverIO chan int) *Server

Initializes a server using babou/lib settings, an event bridge, and a communications channel with the monitoring process.

func (*Server) Start

func (s *Server) Start()

Initializes the babou web application framework Starts listening for requests on specified port and passing them through the stack.

Directories

Path Synopsis
A collection of controllers which can be called from the middleware.
A collection of controllers which can be called from the middleware.
The filters package provides information that is contextual to a given request/response By chaining contexts together you can safely provide a controller access to request/response data with a minimal duplication of logic.
The filters package provides information that is contextual to a given request/response By chaining contexts together you can safely provide a controller access to request/response data with a minimal duplication of logic.

Jump to

Keyboard shortcuts

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