Documentation ¶
Overview ¶
Package options contains configuration options including command line flags
Index ¶
Constants ¶
View Source
const ( ThreadDisabled = false TimersDisabled = false ClearCallbackDisabled = false )
debugging options
Variables ¶
View Source
var ( Mode string Action string Error string Arg string Port string IgnoreVersion bool WebServer bool WebPort string TimeoutMinutes = 2 * 60 // 2 hours Passphrase string // used with -load )
command line flags
View Source
var ( StrictCompare = false StrictCompareDb = false )
StrictCompare determines whether comparisons between different types are allowed (old behavior) or throw an exception (new behavior) NOT thread safe, but don't want overhead on every compare
View Source
var ( AllWarningsThrow = regex.Compile("") NoWarningsThrow = regex.Compile(`\A\Z`) WarningsThrow atomics.Value[regex.Pattern] )
View Source
var BuiltDate string
View Source
var BuiltExtra string
View Source
var CmdLine string
CmdLine is the remaining command line arguments
View Source
var Coverage atomic.Bool
Coverage controls whether Cover op codes are added by codegen.
View Source
var DbStatus atomics.String
DbStatus should be set to one of: - "" (running normally) - starting - repairing - corrupted
View Source
var Errlog = "error.log"
Errlog is the log file name, set specially when client
View Source
var Nworkers = func() int { return min(8, max(1, runtime.NumCPU()-1)) }()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.