counter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountryCount added in v0.2.0

type CountryCount struct {
	Name     string
	Visitors int
}

type CountryStats added in v0.1.6

type CountryStats struct {
	TotalVisitors      int
	TopCountry         string
	TopCountryVisitors int
	TopCountries       []CountryCount
}

type Store

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

func Open

func Open(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Count

func (s *Store) Count() (int, error)

func (*Store) CountryStats added in v0.1.6

func (s *Store) CountryStats(geoLiteDBPath string) (CountryStats, error)

func (*Store) IsOptedOut

func (s *Store) IsOptedOut(ip string) (bool, error)

func (*Store) RecordVisit

func (s *Store) RecordVisit(ip string) (int, error)

func (*Store) SetOptOut

func (s *Store) SetOptOut(ip string, optOut bool) (int, error)

Jump to

Keyboard shortcuts

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