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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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