package
1.0.1
Repository: https://github.com/linuxboot/contest.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

GetConfig processes passed Option-s and returns the resulting state as Config.

# Constants

LogFormatJSON means to write logs as JSON objects.
LogFormatPlainText means to write logs as a plain text.
LogFormatPlainTextCompact means to write logs as a compact plain text.

# Structs

Config is a configuration state resulted from Option-s.
OptionTracer defines if a tracer should be added to the context.

# Interfaces

Option is a modifier of what context to construct.

# Type aliases

LogFormat is a selector of an output format.
OptionHttpLoggerAddr is used to create a logger hook to send logs via http to admin server.
OptionLogFormat defines the format for logs.
OptionLoggerReportCaller defines if it is required to determine source-code file name and line and report it to logs.
OptionTimestampFormat defines the format of timestamps while logging.
OptionTracerReportCaller the same as OptionLoggerReportCaller, but for a tracer.