model

package
v0.0.0-...-5730354 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAddressIsExists

func CheckAddressIsExists(id string) bool

Types

type App

type App struct {
	DB    *gorm.DB
	Redis *redis.Client
}

func (*App) Initialize

func (a *App) Initialize()
type Link struct {
	gorm.Model
	Target  string `json:"target"`
	Address string `json:"address"`
}
func (l *Link) CreateLink()

func (*Link) GetTargetById

func (l *Link) GetTargetById(id string)

func (*Link) SetCache

func (l *Link) SetCache()

Jump to

Keyboard shortcuts

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