Documentation
¶
Overview ¶
Package tebata provides a way to handle OS signals gracefully.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidArgs = errors.New("invalid args argument: expected a slice")
ErrInvalidArgs is returned when invalid arguments are passed to Reserve.
View Source
var ErrInvalidFunction = errors.New("invalid function argument: expected a function")
ErrInvalidFunction is returned when a non-function is passed to Reserve.
View Source
var ErrTooFewArgs = errors.New("too few arguments: not enough arguments provided for function")
ErrTooFewArgs is returned when too few arguments are provided for the function.
View Source
var ErrTooManyArgs = errors.New("too many arguments: too many arguments provided for function")
ErrTooManyArgs is returned when too many arguments are provided for the function.
View Source
var ErrTypeMismatch = errors.New("type mismatch: function parameter types don't match provided argument types")
ErrTypeMismatch is returned when the function arguments don't match the provided arguments.
Functions ¶
This section is empty.
Types ¶
type Tebata ¶
type Tebata struct {
// contains filtered or unexported fields
}
Tebata handles signal-triggered function execution.
func New ¶
New creates a new Tebata instance and starts listening for the specified signals. It uses context for better cancellation support.
Click to show internal directories.
Click to hide internal directories.
