manager

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountDownManager

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

func GetInstallCountDownManager

func GetInstallCountDownManager() *CountDownManager

获得倒计时单例句柄

func (*CountDownManager) AddCd

func (m *CountDownManager) AddCd(
	flag string,
	isEveryExec bool,
	isInitExec bool,
	duration time.Duration,
	repeatCnt uint64,
	hook func(flag string, curCD time.Duration, repeat uint64, isComplete bool, parameterList []any),
	parameterList ...any)

func (*CountDownManager) Clear

func (m *CountDownManager) Clear()

func (*CountDownManager) RemoveCd

func (m *CountDownManager) RemoveCd(flag string)

func (*CountDownManager) RemoveCdByPrefix

func (m *CountDownManager) RemoveCdByPrefix(flagPrefix string)

type LocalCountDown

type LocalCountDown struct {
	Flag        string
	IsEveryExec bool
	IsInitExec  bool
	Duration    time.Duration
	RepeatCnt   uint64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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