Documentation ¶ Index ¶ func PVKey(key uint64, day times.IntDay) []byte func TVKey(key uint64) []byte func ToBytes(count uint64) []byte func ToUint64(value []byte) uint64 func UVKey(key uint64, day times.IntDay) []byte type Counter type Stat type Viewer 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 } Source Files ¶ View all Source files interfaces.go utils.go Directories ¶ Show internal Expand all Path Synopsis kv Click to show internal directories. Click to hide internal directories.