timer

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIME_UV        = 600
	TIME_POST_VIEW = 3600
)

Variables

This section is empty.

Functions

func ClearPv

func ClearPv()

func ClearPvOne

func ClearPvOne(name string)

func ClearUv

func ClearUv()

func ForceSavePv

func ForceSavePv()

func ForceSaveUV

func ForceSaveUV()

func GetPv

func GetPv(name string) int

func GetUv

func GetUv() int

func InitTimer

func InitTimer()

InitTimer 启动timer 必须在应用启动时执行

func UpdatePv

func UpdatePv(name string)

func UpdateUv

func UpdateUv()

Types

type TmpData

type TmpData struct {
	TmpUv       TmpUv
	TmpPostView map[string]TmpPostView
}
var GlobalTmp TmpData

GlobalTmp 临时数据

type TmpPostView

type TmpPostView struct {
	Name string
	View int
}

type TmpUv

type TmpUv struct {
	View int
}

Jump to

Keyboard shortcuts

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