options

package
v0.0.0-...-c208585 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFile = "2006-01-02_15-04-05"

TimeFile is a time format like RFC3339, but filename-friendly

Variables

View Source
var DefaultMaxBodySize int64 = 1024 * 1024

DefaultMaxBodySize is for the web server input

View Source
var InitFlags *flag.FlagSet

InitFlags are the flags for the main binary itself

View Source
var ServerFlags *flag.FlagSet

ServerFlags are the flags the web server can use

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	Addr              string
	TrustProxy        bool
	RepoList          string
	Compress          bool
	ServePath         string
	ScriptsPath       string
	Promotions        []string
	LogDir            string // where the job logs should go
	TmpDir            string // where the backlog files go
	DebounceDelay     time.Duration
	DefaultMaxJobTime time.Duration
	StaleJobAge       time.Duration // how old a dead job is before it's stale
	StaleLogAge       time.Duration
	ExpiredLogAge     time.Duration
}

ServerConfig is an options struct

var Server *ServerConfig

Server is an instance of the config

Jump to

Keyboard shortcuts

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