signal

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package signal provides a mockable wrapper for os/signal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Ignore

func (*Impl) Ignore(sig ...os.Signal)

func (*Impl) Ignored

func (*Impl) Ignored(sig os.Signal) bool

func (*Impl) Notify

func (*Impl) Notify(c chan<- os.Signal, sig ...os.Signal)

func (*Impl) NotifyContext

func (*Impl) NotifyContext(parent context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc)

func (*Impl) Reset

func (*Impl) Reset(sig ...os.Signal)

func (*Impl) Stop

func (*Impl) Stop(c chan<- os.Signal)

type Interface

type Interface interface {
	Ignore(sig ...os.Signal)
	Ignored(sig os.Signal) bool
	Notify(c chan<- os.Signal, sig ...os.Signal)
	NotifyContext(parent context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc)
	Reset(sig ...os.Signal)
	Stop(c chan<- os.Signal)
}

Jump to

Keyboard shortcuts

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