background

package module
v0.0.0-...-563e29a Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackGroundProcesses

type BackGroundProcesses []Process

type Process

type Process struct {

	// Object which describe the process (any object)
	Identifier interface{}

	// Function to call
	CallBackFct func() error
	// Seconds before the CallBackFct is called
	SecondsToDebounce uint32
	// Call AddProcess with the same identifier to restart the time until the callback is called
	CancelProcessOnSameIdentifier bool
	// Repeat the process each SecondsToDebounce
	RepeatProcess bool
	// contains filtered or unexported fields
}

type Service

type Service interface {
	AddProcess(process *Process) error
	CancelProcess(process *Process) error
}

func NewService

func NewService(logger *zap.Logger) Service

Jump to

Keyboard shortcuts

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