models

package
v0.0.0-...-0db3441 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2013 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShortUrl

type ShortUrl struct {
	Id   int64  `xorm:"id pk not null autoincr" json:"-"`
	Slug string `xorm:"-" json:"slug"`
	URL  string `xorm:"url unique" json:"url"`
}

func CachedShortUrlBySlug

func CachedShortUrlBySlug(session *xorm.Session, slug string) (*ShortUrl, error)

func ShortUrlById

func ShortUrlById(session *xorm.Session, id int64) (*ShortUrl, error)

func ShortUrlBySlug

func ShortUrlBySlug(session *xorm.Session, slug string) (*ShortUrl, error)

func ShortUrlCreate

func ShortUrlCreate(session *xorm.Session, url string) (*ShortUrl, error)

func (ShortUrl) String

func (s ShortUrl) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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