Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exit ¶
Exit функция в зависимости от результат errFn выполнить os.Exit.
Если errFn вернет ошибку не типа ErrorOSSignal, то os.Exit(1), иначе return. nolint:interfacer // дублирование интерфейса logr.
func RecoverExit ¶
func SignalNotify ¶
SignalNotify обработка событий выхода от ОС.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewAppWithOpts ¶
func (*App) AddClosers ¶
type ErrorOSSignal ¶
type ErrorOSSignal struct {
// contains filtered or unexported fields
}
ErrorOSSignal обертка в виде ошибки над сигналом ОС для того, чтобы использовать SignalNotify в errgroup.
func (*ErrorOSSignal) Error ¶
func (e *ErrorOSSignal) Error() string
Click to show internal directories.
Click to hide internal directories.