entity

package
v0.0.0-...-0b64520 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRequestUrl

type HttpRequestUrl struct {
	Url       string `json:"url"`
	Shortcode string `json:"shortcode"`
}

type HttpResponseStatsUrl

type HttpResponseStatsUrl struct {
	StartDate     string `json:"startDate"`
	RedirectCount int64  `json:"redirectCount"`
	LastSeenDate  string `json:"lastSeenDate,omitempty"`
}

type HttpResponseUrl

type HttpResponseUrl struct {
	Shortcode string `json:"shortcode"`
}

type Url

type Url struct {
	OriginUrl     string    `gorm:"type:varchar(200);" json:"url"`
	ShortCode     string    `gorm:"primaryKey;type:varchar(6);json:"shortcode"`
	RedirectCount int64     `gorm:""DEFAULT:0;type:int(20)"" json:"redirect_count"`
	CreatedAt     time.Time `gorm:""DEFAULT:current_timestamp; type:timestamp"" json:"created_at"`
	UpdatedAt     time.Time `gorm:""DEFAULT:current_timestamp;type:timestamp"" json:"updated_at"`
	LastSeenAt    time.Time `gorm:""type:timestamp"" json:"last_seen_at"`
}

Jump to

Keyboard shortcuts

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