shortener

package module
v0.0.0-...-7128dd1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

README

shortener

Own URL shortener running on Google App Engine/Go

LICENSE

Appache License, Version 2.0. See LICENSE file for details.

Documentation

Index

Constants

View Source
const (
	Version = "0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RegexpHandler

type RegexpHandler struct {
	// contains filtered or unexported fields
}

RegexpHandler holds a set of routing pattern.

func (*RegexpHandler) HandleFunc

func (rh *RegexpHandler) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

func (*RegexpHandler) Handler

func (rh *RegexpHandler) Handler(pattern string, handler http.Handler)

func (*RegexpHandler) ServeHTTP

func (rh *RegexpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type URLEntity

type URLEntity struct {
	ID    string `json:"id"`
	URL   string `json:"url"`
	Count int    `json:"count"`
}

type URLRequest

type URLRequest struct {
	URL string `json:"url"`
}

URLRequest is a struct to request URL shortening to the server.

Jump to

Keyboard shortcuts

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