Documentation ¶
Index ¶
- Constants
- func RegisterGracefulShutdown(handle func(os.Signal))
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) Trace(format string, args ...interface{})
- func (l *Logger) Warn(format string, args ...interface{})
Constants ¶
View Source
const (
// GracefulShutdownCode - exit code
GracefulShutdownCode = 2
)
Variables ¶
This section is empty.
Functions ¶
func RegisterGracefulShutdown ¶
RegisterGracefulShutdown - sets handler to catch SIGTERM and SIGKILL signals after executing handle function, application exits with GracefulShutdownCode code
Types ¶
Click to show internal directories.
Click to hide internal directories.