view

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PVKey

func PVKey(key uint64, day times.IntDay) []byte

func TVKey

func TVKey(key uint64) []byte

func ToBytes

func ToBytes(count uint64) []byte

func ToUint64

func ToUint64(value []byte) uint64

func UVKey

func UVKey(key uint64, day times.IntDay) []byte

Types

type Counter

type Counter interface {
	Viewer
	Stat
}

type Stat

type Stat interface {
	PV(key uint64, day times.IntDay) uint64
	UV(key uint64, day times.IntDay) uint64
	TV(key uint64) uint64
}

type Viewer

type Viewer interface {
	View(key uint64, remoteIP string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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