Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LogLevelFlagName is the flag name used for setting the default log level. LogLevelFlagName = "log-level" // LogLevelEnvKey is the env var name used for setting the default log level. LogLevelEnvKey = "LOG_LEVEL" // LogLevelFlagShorthand is the shorthand flag name used for setting the default log level. LogLevelFlagShorthand = "l" // LogLevelPrefixFlagUsage is the usage text for the log level flag. LogLevelPrefixFlagUsage = "Logging level to set. Supported options: CRITICAL, ERROR, WARNING, INFO, DEBUG." + `Defaults to info if not set. Setting to debug may adversely impact performance. Alternatively, this can be ` + "set with the following environment variable: " + LogLevelEnvKey )
View Source
const ( // DatabaseURLFlagName is the database url. DatabaseURLFlagName = "database-url" // DatabaseURLFlagUsage describes the usage. DatabaseURLFlagUsage = "Database URL with credentials if required." + " Format must be <driver>:[//]<driver-specific-dsn>." + " Examples: 'mysql://root:secret@tcp(localhost:3306)/adapter', 'mem://test'." + " Supported drivers are [mem, mysql, couchdb]." + " Alternatively, this can be set with the following environment variable: " + DatabaseURLEnvKey // DatabaseURLEnvKey is the databaes url. DatabaseURLEnvKey = "DATABASE_URL" // DatabaseTimeoutFlagName is the database timeout. DatabaseTimeoutFlagName = "database-timeout" // DatabaseTimeoutFlagUsage describes the usage. DatabaseTimeoutFlagUsage = "Total time in seconds to wait until the datasource is available before giving up." + " Default: " + string(rune(DatabaseTimeoutDefault)) + " seconds." + " Alternatively, this can be set with the following environment variable: " + DatabaseTimeoutEnvKey // DatabaseTimeoutEnvKey is the database timeout. DatabaseTimeoutEnvKey = "DATABASE_TIMEOUT" // DatabasePrefixFlagName is the storage prefix. DatabasePrefixFlagName = "database-prefix" // DatabasePrefixEnvKey is the storage prefix. DatabasePrefixEnvKey = "DATABASE_PREFIX" // DatabasePrefixFlagUsage describes the usage. DatabasePrefixFlagUsage = "An optional prefix to be used when creating and retrieving underlying databases. " + "Alternatively, this can be set with the following environment variable: " + DatabasePrefixEnvKey // DatabaseTimeoutDefault is the default storage timeout. DatabaseTimeoutDefault = 30 )
Variables ¶
This section is empty.
Functions ¶
func InitEdgeStore ¶
InitEdgeStore provider.
func SetDefaultLogLevel ¶
SetDefaultLogLevel sets the default log level.
Types ¶
Click to show internal directories.
Click to hide internal directories.