models

package
v0.0.0-...-c2a482a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeId

func CodeId(code string) (id int64)

func NewOrm

func NewOrm() orm.Ormer

func ShortCode

func ShortCode(id int64) (code string)

Types

type SURL

type SURL struct {
	Id        int64  `json:"-"`
	ShortCode string `orm:"-"`
	LongURL   string `orm:"size(1024)"`
}

func (*SURL) Get

func (surl *SURL) Get()

func (*SURL) Save

func (surl *SURL) Save()

Jump to

Keyboard shortcuts

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