models

package
v0.0.0-...-184799c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ShortUrl

type ShortUrl struct {
	Id   int64  `db:"id" json:"-"`
	Slug string `db:"-" json:"slug"`
	URL  string `db:"url" json:"url"`
}

func CachedShortUrlBySlug

func CachedShortUrlBySlug(slug string) (*ShortUrl, error)

func ShortUrlById

func ShortUrlById(id int64) (*ShortUrl, error)

func ShortUrlBySlug

func ShortUrlBySlug(slug string) (*ShortUrl, error)

func ShortUrlCreate

func ShortUrlCreate(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