Help us shape the future of Go! Take the 2026 Go Developer Survey

restart

package module
v0.0.0-...-459a5fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

README

restart

Package restart - quick and simple restart app

Documentation

Overview

Package restart - quick and simple restart app

Index

Constants

This section is empty.

Variables

View Source
var (
	// OFF - disable flag of restart
	OFF bool
	// Logger - Logger
	Logger logger
	// DebugMode = do not restart app, only logging
	DebugMode bool
)

Functions

func ID

func ID() string

ID - return a unique id of crawler's manager, which used for setup job for monitorus server

func Now

func Now(exitCode int, err error)

Now - restarting current app and return a exitCode (via os.Exit(exitCode))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL