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
Click to show internal directories.
Click to hide internal directories.