configuration

package
v0.0.0-...-2dfa829 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: GPL-3.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	FrameW   = 1920              // The width of the frames captured by the Webcam in pixels.
	FrameH   = 1080              // The height of the frames captured by the webcam in pixels.
	WBuckets = 20                // The number of horizontal buckets a frame is broken into.
	HBuckets = 20                // The number of vertical buckets a frame is broken into.
	BucketW  = FrameW / WBuckets // The width of a bucket in pixels.
	BucketH  = FrameH / HBuckets // The height of a bucket in pixels
)

Variables

This section is empty.

Functions

func GetDataDir

func GetDataDir() string

func SaveAsJSON

func SaveAsJSON(v interface{}, fileName string) error

Types

type Configuration

type Configuration struct {
	DBUserName        string // The name of the user with read/write privileges on DBName
	DBPassword        string // The password of the user with read/write privileges on DBName.
	DBName            string // The name of the database that holds the production data.
	DBTestName        string // The name of the database that holds testing data.
	Address           string // The address and port that the mothership is accessible on.
	StaticAssets      string // The path to the static assets rendered by the mothership.
	SummariseInterval int    // The number of milliseconds to wait between updating the interaction summaries.
}

func Parse

func Parse(configFile string) (c Configuration, err error)

Jump to

Keyboard shortcuts

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