url-shortener

command module
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 21 Imported by: 0

README

Url shortener service

Technologies:
  • Golang
  • Grpc
  • Postgres
Featres:
  • Clean architecture
  • Concurrency safe
  • Low latency
  • Default BASE62 algorithm
  • Customizable algorithm
  • Multiple algorithms support
Services:
  • Link service
  • Key Generation service
  • Algorithm Factory
  • Number service
Key generation service pre generate unique keys, depending on algorithm
Algorithm factory register all algorithms
Number service allow you concurently generate increment value in database
Notes:

In base62 implementation every long url refference on unique integer, that converts to base62 (digits and alphabetical symbols). Key grows up to 62^n( 56 800 235 584 unique keys for 6 chars size)

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
cmd
mocks
pkg/repos/algo
Package mock_algo is a generated GoMock package.
Package mock_algo is a generated GoMock package.
pkg/repos/key
Package mock_key is a generated GoMock package.
Package mock_key is a generated GoMock package.
pkg/repos/link
Package mock_link is a generated GoMock package.
Package mock_link is a generated GoMock package.
pkg/repos/number
Package mock_number is a generated GoMock package.
Package mock_number is a generated GoMock package.
pkg/services/algo
Package mock_algo is a generated GoMock package.
Package mock_algo is a generated GoMock package.
pkg/services/key
Package mock_keys is a generated GoMock package.
Package mock_keys is a generated GoMock package.
pkg/services/link
Package mock_links is a generated GoMock package.
Package mock_links is a generated GoMock package.
pkg/services/number
Package mock_number is a generated GoMock package.
Package mock_number is a generated GoMock package.
proto
Package mock_links is a generated GoMock package.
Package mock_links is a generated GoMock package.
pkg
Package links is a reverse proxy.
Package links is a reverse proxy.

Jump to

Keyboard shortcuts

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