globalsignal

package module
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

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

Signal represents the signals supported by the collector.

func MustNewSignal

func MustNewSignal(signal string) Signal

MustNewSignal creates a Signal. It panics if the Signal is invalid. A signal must consist of 1 to 62 lowercase ASCII alphabetic characters.

func NewSignal

func NewSignal(signal string) (Signal, error)

NewSignal creates a Signal. It returns an error if the Signal is invalid. A Signal must consist of 1 to 62 lowercase ASCII alphabetic characters.

func (Signal) MarshalText

func (s Signal) MarshalText() (text []byte, err error)

MarshalText marshals the Signal.

func (Signal) String

func (s Signal) String() string

String returns the string representation of the signal.

Jump to

Keyboard shortcuts

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