stopper

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const (
	InputName = "signal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	modules.BaseModule
	// contains filtered or unexported fields
}

Module - cancels context of all application if get signal.

                |----------------|
                |                |
-- struct{} ->  |     MODULE     |
                |                |
                |----------------|

func NewModule

func NewModule(cancelFunc context.CancelFunc) Module

func (*Module) Close

func (s *Module) Close() error

Close -

func (*Module) Start

func (s *Module) Start(ctx context.Context)

Start -

Jump to

Keyboard shortcuts

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