package
0.0.0-20240117062805-2b7dcb4a7edf
Repository: https://github.com/remind101/pkg.git
Documentation: pkg.go.dev
# Functions
InitAll will initialize all the common dependencies such as metrics, reporting, tracing, and logging.
InitLogger configures a leveled logger.
InitMetrics configures pkg/metrics
Env Vars: * STATSD_ADDR - The host:port of the statsd server.
InitReporter configures and returns a reporter.Reporter instance.
InitTracer configures a global datadog tracer.
NewServer offers some convenience and good defaults for creating an http.Server.
NewStandardHandler returns an http.Handler with a standard middleware stack.
RunServer handles the biolerplate of starting an http server and handling signals gracefully.
WithPort sets the port for the server to run on.
# Variables
ServerDefaults specifies default server options to use for RunServer.
# Structs
Env holds global dependencies that need to be initialized in main() and injected as dependencies into an application.
No description provided by the author
# Type aliases
NewServerOpt allows users to customize the http.Server used by RunServer.