models

package
v0.0.0-...-90af6a3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 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 Request

type Request struct {
	LongUrl string `json:"lurl"`
	Hours   int    `json:"hrs"`
	Minutes int    `json:"mins"`
	Days    int    `json:"days"`
}

type Response

type Response struct {
	ID              primitive.ObjectID `bson:"_id,omitempty"`
	LongUrl         string             `bson:"lurl"`
	ShortUrl        string             `bson:"surl"`
	Hits            int                `bson:"hits"`
	ExpiresAt       int                `bson:"expat"`
	LastRequestTime int                `bson:"lastreq"`
}

Jump to

Keyboard shortcuts

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