Skip to content

Utility class used to terminate go services in a controlled manor.

License

Notifications You must be signed in to change notification settings

pulcy/go-terminate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-terminate

GoDoc

Utility class used to terminate go services in a controlled manor.

Usage

import (
    "log"

    "github.com/pulcy/go-terminate"
    )

func main() {
    t := terminate.NewTerminator(log.Printf, nil)
    go t.ListenSignals()
    ...
}

About

Utility class used to terminate go services in a controlled manor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published