short

package
v0.0.0-...-b010cc8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2014 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShortener

func NewShortener(tde *kv.TiedotEngine) *martini.Martini

Types

type Counter

type Counter struct {
	Count int64
}

func (Counter) ToM

func (c Counter) ToM() M

type Shortened

type Shortened struct {
	Original string
	Short    int64
	HitCount uint64
}

func LongURL

func LongURL(short string, tde *kv.TiedotEngine) (*Shortened, error)

func (Shortened) ToM

func (s Shortened) ToM() M

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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