env

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScopeDsn                              = newStringEnvVar("", "SCOPE_DSN")
	ScopeApiKey                           = newStringEnvVar("", "SCOPE_APIKEY")
	ScopeApiEndpoint                      = newStringEnvVar("https://app.scope.dev", "SCOPE_API_ENDPOINT")
	ScopeService                          = newStringEnvVar("default", "SCOPE_SERVICE")
	ScopeRepository                       = newStringEnvVar("", "SCOPE_REPOSITORY")
	ScopeCommitSha                        = newStringEnvVar("", "SCOPE_COMMIT_SHA")
	ScopeBranch                           = newStringEnvVar("", "SCOPE_BRANCH")
	ScopeSourceRoot                       = newStringEnvVar("", "SCOPE_SOURCE_ROOT")
	ScopeLoggerRoot                       = newStringEnvVar("", "SCOPE_LOGGER_ROOT", "SCOPE_LOG_ROOT_PATH")
	ScopeDebug                            = newBooleanEnvVar(false, "SCOPE_DEBUG")
	ScopeTracerGlobal                     = newBooleanEnvVar(false, "SCOPE_TRACER_GLOBAL", "SCOPE_SET_GLOBAL_TRACER")
	ScopeTestingMode                      = newBooleanEnvVar(false, "SCOPE_TESTING_MODE")
	ScopeTestingFailRetries               = newIntEnvVar(0, "SCOPE_TESTING_FAIL_RETRIES")
	ScopeTestingPanicAsFail               = newBooleanEnvVar(false, "SCOPE_TESTING_PANIC_AS_FAIL")
	ScopeConfiguration                    = newSliceEnvVar([]string{tags.PlatformName, tags.PlatformArchitecture, tags.GoVersion}, "SCOPE_CONFIGURATION")
	ScopeMetadata                         = newMapEnvVar(nil, "SCOPE_METADATA")
	ScopeInstrumentationHttpPayloads      = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_HTTP_PAYLOADS")
	ScopeInstrumentationHttpStacktrace    = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_HTTP_STACKTRACE")
	ScopeInstrumentationDbStatementValues = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_DB_STATEMENT_VALUES")
	ScopeInstrumentationDbStacktrace      = newBooleanEnvVar(false, "SCOPE_INSTRUMENTATION_DB_STACKTRACE")
	ScopeRunnerEnabled                    = newBooleanEnvVar(false, "SCOPE_RUNNER_ENABLED")
	ScopeRunnerIncludeBranches            = newSliceEnvVar(nil, "SCOPE_RUNNER_INCLUDE_BRANCHES")
	ScopeRunnerExcludeBranches            = newSliceEnvVar(nil, "SCOPE_RUNNER_EXCLUDE_BRANCHES")
	ScopeDependenciesIndirect             = newBooleanEnvVar(false, "SCOPE_DEPENDENCIES_INDIRECT")
	ScopeInstrumentationTestingLogger     = newBooleanEnvVar(true, "`SCOPE_INSTRUMENTATION_TESTING_LOGGER`")
)

Functions

This section is empty.

Types

type BooleanEnvVar

type BooleanEnvVar struct {
	Value bool
	// contains filtered or unexported fields
}

func (*BooleanEnvVar) Tuple

func (e *BooleanEnvVar) Tuple() (bool, bool)

type IntEnvVar

type IntEnvVar struct {
	Value int
	// contains filtered or unexported fields
}

func (*IntEnvVar) Tuple

func (e *IntEnvVar) Tuple() (int, bool)

type MapEnvVar

type MapEnvVar struct {
	Value map[string]interface{}
	// contains filtered or unexported fields
}

func (*MapEnvVar) Tuple

func (e *MapEnvVar) Tuple() (map[string]interface{}, bool)

type SliceEnvVar

type SliceEnvVar struct {
	Value []string
	// contains filtered or unexported fields
}

func (*SliceEnvVar) Tuple

func (e *SliceEnvVar) Tuple() ([]string, bool)

type StringEnvVar

type StringEnvVar struct {
	Value string
	// contains filtered or unexported fields
}

func (*StringEnvVar) Tuple

func (e *StringEnvVar) Tuple() (string, bool)

Jump to

Keyboard shortcuts

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