lib

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNIX_TRANSPORT  TransportType = iota
	TCP_TRANSPORT                 = iota
	LOCAL_TRANSPORT               = iota
)

Currently we support UNIX and TCP sockets as well as a special loopback socket.

View Source
const (
	WEB_SERVER_STARTED = iota // Receive from web server's io when it is fully initalized and ready to receive requests.
	WEB_SERVER_STOP           // Send on web server's io chan to shut it down.
	WEB_SERVER_STOPPED        // Receive from web server's io when shutdown is complete.
	WEB_SERVER_ERR
	TRACKER_SERVER_START
	TRACKER_SERVER_ERR
)

web server constants

View Source
const (
	TRACKER_ANNOUNCE_INTERVAL int = 300
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppSettings

type AppSettings struct {
	Debug bool // Print debug messages

	WebStack     bool // Enable the web-stack
	TrackerStack bool // Enable the tracker-stack
	FullStack    bool // Enable all stacks. (Single binary mode.)

	WebPort     int // Port the web-stack will listen on
	TrackerPort int // Port the track-stack will listen on

	WebHost     string // Hostname of the web-server, used for generating URLs
	TrackerHost string //Hostname of tracker, used for generating URLs.

	Bridge      *TransportSettings   // Local bridge
	BridgePeers []*TransportSettings // Remote bridges

	DbOpen     string
	ConfigPath string
}

type TransportSettings

type TransportSettings struct {
	Transport TransportType

	Socket string // if applicable
	Port   int    // if applicable
}

type TransportType

type TransportType uint8

Available bridge transports.

Directories

Path Synopsis
Exposes a connection to the underlying PostgreSQL RDBMS.
Exposes a connection to the underlying PostgreSQL RDBMS.
An implementation of the gorilla/sessions#Store interface for `babou` This uses a PostgreSQL database as a storage backend.
An implementation of the gorilla/sessions#Store interface for `babou` This uses a PostgreSQL database as a storage backend.
The `babou` web application core Provides library methods that are useful from many different layers in the `app` package.
The `babou` web application core Provides library methods that are useful from many different layers in the `app` package.

Jump to

Keyboard shortcuts

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