mongodb

package
v0.0.0-...-1cd9d81 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Host     string `yaml:"host"`
	Database string `yaml:"database"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Database

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

func New

func New(c Conf) *Database

func (Database) GetDistinctPublicIPs

func (db Database) GetDistinctPublicIPs() ([]string, error)

func (Database) GetMostFrequentVisitors

func (db Database) GetMostFrequentVisitors() (model.UniqueVisitors, error)

func (Database) GetNumberOfVisitors

func (db Database) GetNumberOfVisitors() (int, error)

func (Database) InsertVisitor

func (db Database) InsertVisitor(r *http.Request) error

Jump to

Keyboard shortcuts

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