interrupt

package
v0.0.0-...-30b4a77 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package interrupt allows to handle interrupts.

Index

Constants

This section is empty.

Variables

View Source
var ShutdownChannel = make(chan error)

ShutdownChannel is used to signal that shutdown is in progress.

Functions

func AddInterruptHandler

func AddInterruptHandler(handler func())

AddInterruptHandler adds a handler to call when a SIGINT (Ctrl+C) is received.

Types

This section is empty.

Jump to

Keyboard shortcuts

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