Models

package
v0.0.0-...-67b66e9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Latitude  float64 `json:"latitude" bson:"latitude"`
	Longitude float64 `json:"longitude" bson:"longitude"`
}

type Url

type Url struct {
	Id             primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	UserTelegramId int64              `json:"userTelegramId" bson:"userTelegramId"`
	OriginalUrl    string             `json:"originalUrl" bson:"originalUrl"`
	ShortUrl       string             `json:"ShortUrl" bson:"shortUrl"`
	EndDate        primitive.DateTime `json:"endDate,omitempty" bson:"endDate,omitempty"` // null olabilir
}

type User

type User struct {
	Id         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	TelegramId int64              `json:"telegramId" bson:"telegramId"`
	Name       string             `json:"name" bson:"name"`
}

type UserDeviceInfo

type UserDeviceInfo struct {
	UrlId        primitive.ObjectID `json:"urlId" bson:"urlId"`
	ClickTime    primitive.DateTime `json:"clickTime,omitempty" bson:"clickTime,omitempty"`
	Device       string             `json:"device" bson:"device"`
	Browser      string             `json:"browser" bson:"browser"`
	OS           string             `json:"os" bson:"os"`
	UserAgent    string             `json:"user_agent" bson:"user_agent"`
	Country      string             `json:"country" bson:"country"`
	CountryCode  string             `json:"country_code" bson:"country_code"`
	Region       string             `json:"region" bson:"region"`
	City         string             `json:"city" bson:"city"`
	ISP          string             `json:"isp" bson:"isp"`
	Organization string             `json:"organization" bson:"organization"`
	ASN          string             `json:"asn" bson:"asn"`
	Timezone     string             `json:"timezone" bson:"timezone"`
	Location     Location           `json:"location" bson:"location"`
}

Jump to

Keyboard shortcuts

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