model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Length = 6

Length is a random key length.

Variables

This section is empty.

Functions

func Key

func Key() string

Key generates a random key from the source characters.

Types

type URL

type URL struct {
	Key        string     `bson:"key"`
	URL        string     `bson:"url"`
	Count      int        `bson:"count"`
	ExpireTime *time.Time `bson:"expire_time"`
}

URL is a model for url with its attributes.

Jump to

Keyboard shortcuts

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