Skip to content

exfly/gracefully

Repository files navigation

Gracefully Build Status GoDoc

go app gracefully shutdown utils. This project is split from k8s, I want to do some progress here.

Getting Started

var stopCh = gracefully.SetupSignalHandler()
go func() {
    for {
        log.Println("alive...")
        time.Sleep(1 * time.Second)
    }
}()
<-stopCh
log.Println("gracefully shutdown")

Installing

go get -u github.com/exfly/gracefully

Deployment

This project is forked form k8s.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • exfly - Initial work - exfly

License

This project is licensed under the Apache v2 License - see the LICENSE.md file for details

About

go gracefully shutdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages