options

package
v0.0.0-...-cb5ff6d Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 0

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

func BuiltStr

func BuiltStr() string

func EscapeArg

func EscapeArg(s string) string

func Parse

func Parse(args []string)

Parse processes the command line options returning the remaining arguments

Types

This section is empty.

Jump to

Keyboard shortcuts

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