dao

package
v0.0.0-...-a783adc Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IVisitLogDao

type IVisitLogDao interface {
	Add(ctx context.Context, visitHistory VisitHistory) error
}

type VisitHistory

type VisitHistory struct {
	Id         string `bson:"_id"`
	Url        string `bson:"url"`
	Ip         string `bson:"ip"`
	UserAgent  string `bson:"user_agent"`
	Origin     string `bson:"origin"`
	Referer    string `bson:"referer"`
	CreateTime int64  `bson:"create_time"`
}

type VisitLogDao

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

func NewVisitLogDao

func NewVisitLogDao(db *mongo.Database) *VisitLogDao

func (*VisitLogDao) Add

func (d *VisitLogDao) Add(ctx context.Context, visitHistory VisitHistory) error

Jump to

Keyboard shortcuts

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