config

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFlags

func ReadFlags() *libBabou.AppSettings

Types

type BridgeConfig

type BridgeConfig struct {
	LocalBridge BridgePeer    `json:"self"`
	Peers       []*BridgePeer `json:"peers"`
}

type BridgePeer

type BridgePeer struct {
	Transport     string `json:"transport"` //  Socket Type. //TODO: TRANSPORT_TYPE
	SocketAddress string `json:"listen"`    // Address for the socket to send or receive.
	Port          int    `json:"port"`      // Port or suffix [PID,PORT,ETC.] of the remote socket.
}

type Config

type Config struct {
	Database  *DatabaseConfig `json:"db"`
	WebServer *ServerConfig   `json:"site"`
	Tracker   *ServerConfig   `json:"tracker"`
	Events    *BridgeConfig   `json:"events"`
}

The JSON configuration for the components of the babou stack.

type DatabaseConfig

type DatabaseConfig struct {
	ConnectionParams string `json:"open"`
}

type ServerConfig

type ServerConfig struct {
	DomainName string `json:"domain"`
	ListenAddr string `json:"listen"`
	Port       int    `json:"port"`
}

Jump to

Keyboard shortcuts

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