Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DailyOnce ¶
type DailyOnce struct {
// contains filtered or unexported fields
}
func NewDailyOnce ¶
func NewDailyOnce() *DailyOnce
type PeriodOnce ¶
type PeriodOnce struct {
// contains filtered or unexported fields
}
PeriodOnce 周期性懒加载锁
func CreatePeriodOnceWithHourAndMinute ¶ added in v0.0.19
func CreatePeriodOnceWithHourAndMinute(hour, minute int) *PeriodOnce
CreatePeriodOnceWithHourAndMinute 创建每日按时分初始化的周期性懒加载锁
func CreatePeriodOnceWithSecond ¶ added in v0.0.19
func CreatePeriodOnceWithSecond(seconds int) *PeriodOnce
CreatePeriodOnceWithSecond 创建间隔秒数初始化的周期性懒加载锁
func (*PeriodOnce) Do ¶
func (o *PeriodOnce) Do(f func())
Click to show internal directories.
Click to hide internal directories.