val_obj

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {
	UrlId       uint      `json:"url_id,omitempty"`
	Referrer    string    `json:"referrer,omitempty"`
	UserIp      string    `json:"user_ip,omitempty"`
	UserCountry string    `json:"user_country,omitempty"`
	UserAgent   string    `json:"user_agent,omitempty"`
	AccessTime  time.Time `json:"access_time,omitempty"`

	OS         string `json:"os,omitempty"`
	Browser    string `json:"browser,omitempty"`
	Device     string `json:"device,omitempty"`
	DeviceType string `json:"device_type,omitempty"`
}

type StatItem

type StatItem struct {
	Dim   string
	Click int64
}

type URLObject

type URLObject struct {
	Id         uint         `json:"id,omitempty"`
	LongURL    string       `json:"long_url,omitempty"`
	ShortCode  string       `json:"short_code,omitempty"`
	CreateTime time.Time    `json:"create_time,omitempty"`
	ExpireTime sql.NullTime `json:"expire_time,omitempty"`
	Enabled    bool         `json:"enabled,omitempty"`
}

Jump to

Keyboard shortcuts

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