must_do

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MustDo

type MustDo struct {
	Thing func() bool
	Conf  *MustDoConfig
}

func (*MustDo) Start

func (c *MustDo) Start()

type MustDoConfig

type MustDoConfig struct {
	LargeInterval time.Duration //每组间隔执行时间
	SmallInterval time.Duration //每次尝试的间隔时间
	CycleIndex    int           //每组循环次数
}

必须完成某个动作 按组进行尝试,组与组之间有间隔时间 每组固定次数与间隔时间

第一版初步完成

Jump to

Keyboard shortcuts

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