# Functions
No description provided by the author
GracefulShutdown shutsdown a server, giving open connections up to the timeout duration to close before forceably stopping the server.
NewAWSFlags returns a new BaseFlags.
NewElasticsearchFlags returns a new BaseFlags.
NewHealthchecksHandler returns a new healthcheck.Handler, configured with a basic liveness check and Prometheus healthcheck status metrics for a given app name.
NewLoggingFlags returns a new LoggingFlags.
NewServerFlags returns a new ServerFlags.
SetGlobalLogger both sets the zap global logger, and redirects the output from the standard library's package-global logger to the supplied logger at the debug level.
SetGlobalLogger both sets the zap global logger, and redirects the output from the standard library's package-global logger to the supplied logger at the specified level.
WithInterrupt returns a Context that will be canceled if a SIGINT or SIGTERM is received.
# Constants
Namespace is the namespace to be used for Prometheus metrics throughout elasticsearch-asg.
# Structs
AWSFlags represents a set of flags for connecting to AWS.
ElasticsearchFlags represents a base set of flags for connecting to Elasticsearch.
LoggingFlags represents a set of flags for setting up logging.
ServerFlags represents a set of flags for setting up a server with healthchecks and Prometheus metrics.
# Interfaces
Flagger defines command line flags and args.