bang

command module
v0.0.0-...-f968e2d Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

A ~fast enough~ URL shortener generating short links like this: domain.tld/!84v2b
Could use some optimization, tests, and benchmarks.
Bang! uses Valkey database (Redis fork) to store and persist redirects. A sample Docker Compose file is included in the repository to spin up one.

--- How to use ---
To create a new link: POST request at /new?url=[your link]
To delete a link: DELETE request at /[short url]?key=[64 character long key provided when creating link]
To run Bang!, start the database using "docker compose up -d", then run the executable or run "go run .".
IMPORTANT: Make sure to run this behind HTTPS/TLS encryption, since the key for a short link gets sent around in clear text format.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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