signal

package
v0.0.0-...-78a1898 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Signal component provides ability to handle terminating signals from OS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trap

type Trap struct {
}

Trap implements the ComponentInterface and provides a component which will stop the service when the OS signal is received

func NewTrap

func NewTrap() Trap

func (Trap) Run

func (ts Trap) Run() (stop func(), wait func() error, err error)

Jump to

Keyboard shortcuts

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