chibi_linku

package module
v0.0.0-...-a2b5ca8 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 9 Imported by: 0

README

chibi_linku

URL shortener in Golang

Routes

GET /ping // ping the service
GET /purge // purge the content of the redis
POST /encode // encode an URL and return its identifier
GET /decode/{code} // decode an identifier and redirect to the related url

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInvalidHttpMethod

func HandleInvalidHttpMethod(w http.ResponseWriter, r *http.Request, s string)

func Run

func Run()

Types

type Url

type Url struct {
	Link       string `json:"link"`
	Expiration int    `json:"expiration"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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