package
3.2.1+incompatible
Repository: https://github.com/xitonix/trubka.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FormatTime formats the time using time.RFC3339Nano layout.
IgnoreRegexCase returns a case-insensitive regular expression.
IsEmpty returns true of the trimmed input is empty.
NewCounter creates a new instance of a counter.
NewJSONHighlighter creates a new instance of a Json highlighter.
NewJSONMessageProcessor creates a new instance of JSON message processor.
NewLogger creates a new instance of a logger.
NewPlainTextMarshaller creates a new instance of a plain text marshaller.
NewPrinter creates a new synchronised writer.
NotFoundError constructs a new NotFound error for the specified entity.
RemovePort removes :Port from an address if exists.
Title capitalises the first letter of the error message if the error is not nil, otherwise returns "".
ToVerbosityLevel converts the input into a logging verbosity level.
WaitForCancellationSignal waits for the user to press Ctrl+C.

# Constants

Base64Encoding base64 encoding.
Chatty extremely verbose mode (-vvvv).
DefaultHighlightStyle default Json highlighting style across the app.
Forced the lowest logging level.
HexEncoding hex encoding.
JSONEncoding un-indented Json output.
JSONIndentation the indentation of JSON output.
JSONIndentEncoding indented Json output.
PlainTextEncoding plain text encoding.
SuperVerbose super verbose mode (-vvv).
Verbose verbose mode (-v).
VeryVerbose very verbose mode (-vv).

# Variables

HighlightStyles contains the available Json highlighting styles.

# Structs

Counter represents a in-memory counter for consumed Kafka events.
JSONHighlighter represents a Json highlighter.
JSONMessageProcessor prepares json output for printing.
Logger represents a logger.
MessageMetadata represents the message metadata which should be included in the output.
PlainTextMarshaller represents plain text marshaller.
SyncPrinter is an implementation of Printer interface to synchronously write to specified io.Writer instances.

# Interfaces

Printer represents a printer type.

# Type aliases

VerbosityLevel logging verbosity level.