url

package
v0.0.0-...-43618a6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarshallUrl

type MarshallUrl struct {
	Id       int64  `json:"id"`
	Source   string `json:"source"`
	ShortUrl string `json:"short_url" gorm:"unique"`
	UserID   uint64 `json:"user_id"`
}

type Url

type Url struct {
	gorm.Model
	Source   string    `json:"source"`
	ShortUrl string    `json:"short_url" gorm:"unique"`
	UserID   uint64    `json:"user_id"`
	User     user.User `jaon:"user"`
}

func (Url) Marshall

func (u Url) Marshall() MarshallUrl

type Urls

type Urls []Url

func (Urls) Marshall

func (u Urls) Marshall() []interface{}

Jump to

Keyboard shortcuts

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