shortener

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shortener

type Shortener interface {
	// Shorten a long URL
	Shorten(long string, ops *types.ShortOptions) (*types.URL, error)
	// Restore a short URL
	Restore(short string) (*types.URL, error)
}

func New

func New(conf config.StoreConfig) Shortener

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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