Discover Packages
github.com/acronis/zerodt
package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 17, 2017
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
ZeroDT
Zero downtime restart and graceful shutdown in one line of code
TODO: errors in a separate channel
TODO: prestart handler
TODO: build on Win
TODO: tests
TODO: travis
TODO: doc.go #godoc
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
SetLogger allows to set a different logger that is compatible with StdLogger
interface. Tested with stdlib logger:
log.New(os.Stderr, "", log.LstdFlags)
And sirupsen/logrus:
logrus.StandardLogger()
type StdLogger interface {
Print(...interface{})
Printf(string , ...interface{})
Println(...interface{})
Fatal(...interface{})
Fatalf(string , ...interface{})
Fatalln(...interface{})
Panic(...interface{})
Panicf(string , ...interface{})
Panicln(...interface{})
}
StdLogger is an interface for stdlib logger also compatible with logrus
Source Files
¶
Directories
¶
examples
Click to show internal directories.
Click to hide internal directories.