server

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DATABASE_TYPE_DEFAULT = "memory"
	HTTP_PORT_DEFAULT     = 8080 // Port 8080
)

Variables

This section is empty.

Functions

func InitServer

func InitServer(cfg config.Provider)

The config should contain following keys: runners.queuesize: Max number of jobs in the queue (default 10) runners.nbrunners: Max number of parallel running jobs (default 1) runners.timeout for each running job in Seconds (default 0=unlimited) runners.jobthreads : Number of cpus per bootstrap runner database.type: mysql or memory (default memory) database.user: user to connect to mysql if type is mysql database.host: host to connect to mysql if type is mysql database.port: port to connect to mysql if type is mysql database.pass: pass to connect to mysql if type is mysql database.dbname: name of db to connect to mysql if type is mysql logging.logfile : path to log file: stdout, stderr or any file name (default stderr)

Types

type ErrorInfo

type ErrorInfo struct {
	Message string
}

type MarkDownPage

type MarkDownPage struct {
	Md string
}

Jump to

Keyboard shortcuts

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