signals

package module
v0.0.0-...-0a592aa Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

README

go-signals

Bind func to signal

package main

import "github.com/9glt/go-signals"
import "runtime"

func main() {
    signals.USR1(func() {
        println("reload config")
    })
    runtime.Goexit()
}
pkill -usr1 app

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HUP

func HUP(fn func())

func INT

func INT(fn func())

func TERM

func TERM(fn func())

func USR1

func USR1(fn func())

func USR2

func USR2(fn func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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