server

package
v0.0.0-...-f21c627 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateURL

func CreateURL(repository *storage.Repository) echo.HandlerFunc

CreateURL returns a handler to create an db record from the `full_url` form param of the request.

func New

func New(repository *storage.Repository) *echo.Echo

New instanciates a new Echo server

func RetrieveURL

func RetrieveURL(repository *storage.Repository) echo.HandlerFunc

RetrieveURL returns a handler that retrieves the full URL from the `shortURL` request param. Returns a `Temporary Redirect` response with the result or `Not Found` if no match was found.

func Status

func Status() echo.HandlerFunc

Status returns a basic `ping/pong` handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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