handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 6 Imported by: 3

Documentation

Overview

Package handlers provides HTTP request handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetShortHandler

func GetShortHandler(store storage.Storage, index Index) http.Handler

func SetShortHandler

func SetShortHandler(store storage.Storage) http.Handler

Types

type Index

type Index struct {
	Short string
	Error error
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex(path string) (Index, error)

func (Index) ServeHTTP

func (i Index) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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