package
0.6.0
Repository: https://github.com/axiomhq/pkg.git
Documentation: pkg.go.dev

# Functions

DefaultExitSignals are the default signals to catch and exit upon.
DefaultLoggerOptions are the default logger options to use.
Error is a convenience function that improves error log output when returning from the `MainFunc`.
Run the named app with the given `RunFunc`.
WithAxiomOptions sets the options used for creating the Axiom client.
WithExitSignals sets the signals that will cause the program to exit gracefully.
WithLoggerOptions sets the options used for creating the logger.
WithRequiredEnvVars sets the environment variables that are required to be set at application startup.
WithValidateAxiomCredentials will validate the Axiom credentials at startup and fail the execution gracefully, if they are invalid.

# Type aliases

An Option modifies the behaviour of the `Run()` function.
RunFunc is implemented by the main packages and passed to the `Run` function which takes care of signal handling, loading the runtime configuration and setting up logging, the Axiom client, etc.