models

package
v0.0.0-...-1158c2d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func ConnectDatabase

func ConnectDatabase()

Types

type Url

type Url struct {
	ID   string    `json:"id" gorm:"primary_key"`
	Url  string    `json:"url"`
	Date time.Time `json:"date" gorm:"type:datetime"`
	IP   string    `json:"-"`
}

type UrlInput

type UrlInput struct {
	Url string `json:"url" binding:"required"`
}

Jump to

Keyboard shortcuts

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