World Conquest Chronicles

World Conquest Chronicles

go-link-shortener-backend, v1.9

Back-end of the service for shorting links.

Create indexes on connecting to the database and replace inserting a link to updating in the upsert mode.

Change Log

  • storing links in the MongoDB database:
    • create indexes for all link fields on connecting to the database;
    • don't insert a link but update in the upsert mode to avoid duplicates;
  • refactoring:
    • of the storage package;
    • of integration tests.

Repository

Link: https://github.com/thewizardplusplus/go-link-shortener-backend/tree/v1.9.

Content: code.

License: MIT.