Documentation ¶
Overview ¶
Package bootstrap provides a simple way to bootstrap an application with a managed logging framework, metrics and application context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BindFunc ¶
BindFunc represents the function responsible to wire up all components of the application.
type CreateLoggerFunc ¶
CreateLoggerFunc creates a new logger.
type CreateMetricsClientFunc ¶
CreateMetricsClientFunc creates a new metrics client.
type Option ¶
type Option func(*config)
Option is a type alias for a function that configures the application logger.
func WithContext ¶
WithContext overrides the application context (useful for testing).
func WithCreateLoggerFunc ¶
func WithCreateLoggerFunc(fn CreateLoggerFunc) Option
WithCreateLoggerFunc overrides the root logger creation function.
func WithCreateMetricsClientFunc ¶
func WithCreateMetricsClientFunc(fn CreateMetricsClientFunc) Option
WithCreateMetricsClientFunc overrides the default metrics client register.
func WithLogger ¶
WithLogger overrides the default application logger.