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 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func HandleInvalidHttpMethod(w http.ResponseWriter, r *http.Request, s string) func Run() type Url 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"` } Source Files ¶ View all Source files chibi_linku.go decode_service.go encode_service.go handlers.go utils.go Directories ¶ Show internal Expand all Path Synopsis cmd database helpers Click to show internal directories. Click to hide internal directories.