expire

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unix

func Unix() int64

Types

type Expire

type Expire struct {
	StartIn  int64 `json:"startIn"`
	ExpireIn int64 `json:"expireIn"` //过期时间点
}

func New

func New(secondIn int32) Expire

func (*Expire) IsDiff

func (e *Expire) IsDiff(diff int64) bool

func (*Expire) IsExpired

func (e *Expire) IsExpired() bool

Jump to

Keyboard shortcuts

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