Skip to content

EnsPzr/getir-go-assigment

Repository files navigation

Getir-Go-Assigment

Description:

This project was given as homework by Getir. This is a restful api project. Mongodb, sqlite and go-cache are used inside the project. Mongodb is used for database. Go-cache and sqlite are used for in-memory database. Project has 5 routes.

Swagger

Summary of Routes:

Detail of Routes:

Folder Structure

  • cache
    This folder holds files which contain cache(in-memory) structure and methods.
    There are 2 cache(in-memory) structures.
    - go-cache
    - sqlite
  • cmd
    This folder contains main function.
    The project starts with this function.
    This function calls database connection, caches initialization, route setup and http server starts functions.
  • database
    This folder contains mongodb database client, connect and disconnect function.
  • handlers
    This folder holds files containing functions to process requests.
  • model
    This folder holds files containing the models required for the project.
  • router
    This folder contains route definition function.
  • service
    This folder contains database operations functions.
  • test
    This folder contains files containing test functions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages