internal

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoExpireErr = errors.New("not expire")

Functions

func Assert

func Assert(v interface{})

func Assert2

func Assert2(v1 interface{}, v2 interface{})

func Assert3

func Assert3(v1 interface{}, v2 interface{}, v3 interface{})

func Assert4

func Assert4(v1 interface{}, v2 interface{}, v3 interface{}, v4 interface{})

Types

type Expire

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

func NowWithHour

func NowWithHour(hour int64) Expire

func NowWithMinute

func NowWithMinute(minute int64) Expire

func NowWithSecond

func NowWithSecond(seconds int64) Expire

func (*Expire) IsExpired

func (c *Expire) IsExpired() bool

type TimeCount

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

func (*TimeCount) Check

func (t *TimeCount) Check(duration int64, count int) bool

func (*TimeCount) Count

func (t *TimeCount) Count() int

func (*TimeCount) Inr

func (t *TimeCount) Inr(duration int64)

func (*TimeCount) Reset

func (t *TimeCount) Reset()

Jump to

Keyboard shortcuts

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