appsignals

package
v0.0.0-...-7635388 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileTrigger

func FileTrigger(path string, signal os.Signal, shutdown chan os.Signal) error

Trigger notifications when a file is mutated

func Notify

func Notify(trigger string, signal os.Signal)

Directly trigger a notification

func Watch

func Watch(c chan<- Signal)

Notify a channel if a an event is triggered. A notification is always triggered for SIGUSR1

Types

type Signal

type Signal struct {
	// Source of the event trigger as we simulate signal generation from a variety of triggers
	Source string
	Signal os.Signal
}

Jump to

Keyboard shortcuts

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