zerodt

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: MIT Imports: 18 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.

README

ZeroDT Build Status

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(l StdLogger)

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()

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App TODO

func NewApp

func NewApp(servers ...*http.Server) *App

NewApp TODO

func (*App) Serve

func (a *App) Serve() error

Serve TODO

type StdLogger

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

Directories

Path Synopsis
examples
test command

Jump to

Keyboard shortcuts

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