package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Packages
Package main is entry point for AcraKeymaker utility.
Package main is entry point for `acra-keys` utility.
Package main is entry point for AcraPoisonRecordsMaker utility.
Package main is entry point for AcraRollback utility.
Package main is entry point for acra-rotate.
Package main is entry point for AcraServer utility.
Package main is entry point for `acra-tokens` utility used to manipulate token stores.
Package main is entry point for AcraTranslator service.
# Functions
ConfigPath returns path to configuration file.
DumpConfig writes CLI params to configPath.
DumpConfigFromFlagSets writes CLI params to configPath.
GenerateMarkdownDoc generates Markdown file from CLI params.
GenerateMarkdownDocFromFlagSets generates Markdown file from CLI flag sets.
GenerateYaml generates YAML file from CLI params.
GenerateYamlFromFlagSets generates YAML file from CLI flag sets.
GetJaegerCmdParameters return jaeger.Options parsed from config/cmd parameters.
GetTestRedisOptions returns options configured with test env variables use this function for tests.
IsTraceToJaegerOn return true if turned on tracing to jaeger.
IsTraceToLogOn return true if turned on tracing to log output.
NewSignalHandler returns new SignalHandler registered for particular os.Signals.
ParseConfig parse service config by configPath if exists.
ParseFlags parses CommandLine flags or return ErrDumpRequested if requested.
ParseRedisCLIParameters parse RedisOptions from CommandLine flags.
ParseRedisCLIParametersFromFlags parse CLI args from FlagSet.
PrintFlags pretty-prints CLI flag set with default values to stderr.
RandomStringBytes getting random string using faster randSrc.Int63() and true distribution for letterBytes.
RegisterBuildInfoMetrics set and register metrics with build info.
RegisterJaegerCmdParameters register cli parameters with flag for jaeger options.
RegisterRedisKeystoreParameters registers Redis keystore parameters with given CommandLine flags and empty prefix.
RegisterRedisKeystoreParametersWithPrefix registers Redis keystore parameters with given flag set and prefix.
RegisterRedisTokenStoreParameters registers Redis TokenStore parameters with given CommandLine flags and empty prefix.
RegisterRedisTokenStoreParametersWithPrefix registers Redis keystore parameters with given flag set and prefix.
RegisterTracingCmdParameters register cli parameters with flag for tracing.
RegisterVersionMetrics set and register metrics with current version value.
RunPrometheusHTTPHandler run in goroutine http server that process with connectionString address and export prometheus metrics.
SetupTracing with global options related with exporters.
ValidateClientID checks that clientID has digits, letters, _ - ' '.
ValidateJaegerCmdParameters validate cli parameters.
ValidateRedisCLIOptions validate Redis CLI options.
# Constants
Type of binary version.
Type of binary version.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
Acra component constants: default port, host, names, path.
# Variables
Argument and configuration parsing errors.
ErrIdenticalRedisDBs redis DBs related error.
ErrInvalidJaegerExporterEndpoint incorrect endpoint for jaeger.
# Structs
Argon2Params describes params for Argon2 hashing.
RedisOptions keep command-line options related to Redis database configuration.
SignalHandler sends Signal to listeners and call registered callbacks.
UserAuth describes user params for password hashing: salt, params, hash.
# Type aliases
SignalCallback callback function.