signal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

signal

Index

Constants

This section is empty.

Variables

View Source
var Config = Configuration{}
View Source
var SignalHandlerModule = NewSignalHandler()

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	SupportSignal bool
}

func (*Configuration) Close

func (c *Configuration) Close() error

func (*Configuration) Init

func (c *Configuration) Init() error

func (*Configuration) Name

func (c *Configuration) Name() string

type Handler

type Handler interface {
	Process(s os.Signal, ud interface{}) error
}

type InterruptSignalHandler

type InterruptSignalHandler struct {
}

func (*InterruptSignalHandler) Process

func (ish *InterruptSignalHandler) Process(s os.Signal, ud interface{}) error

type KillSignalHandler

type KillSignalHandler struct {
}

func (*KillSignalHandler) Process

func (ish *KillSignalHandler) Process(s os.Signal, ud interface{}) error

type SignalHandler

type SignalHandler struct {
	// contains filtered or unexported fields
}

func NewSignalHandler

func NewSignalHandler() *SignalHandler

func (*SignalHandler) ClearHandler

func (this *SignalHandler) ClearHandler(s os.Signal) int

func (*SignalHandler) ProcessSignal

func (this *SignalHandler) ProcessSignal()

func (*SignalHandler) RegisteHandler

func (this *SignalHandler) RegisteHandler(s os.Signal, h Handler, ud interface{}) error

func (*SignalHandler) UnregisteHandler

func (this *SignalHandler) UnregisteHandler(s os.Signal, h Handler) error

Jump to

Keyboard shortcuts

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