model

package
v0.0.0-...-13e00fe Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionName = "url"
)

Variables

This section is empty.

Functions

func IsUrl

func IsUrl(str string) bool

Types

type URL

type URL struct {
	Key     string `json:"key" bson:"_id,omitempty"`
	LongUrl string `bson:"longUrl omitempty"`
}

func (*URL) CreateUrl

func (u *URL) CreateUrl(c *gin.Context)

func (*URL) ForwardToTargetUrl

func (u *URL) ForwardToTargetUrl(c *gin.Context)

ForwardToTargetUrl for redirect to target url

Jump to

Keyboard shortcuts

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