Categorygithub.com/AxelUser/mongo-delete-agent
module
0.0.0-20220204083013-446841404817
Repository: https://github.com/axeluser/mongo-delete-agent.git
Documentation: pkg.go.dev

# README

Mongo data removal agent

Service for sheduling removes of entities in Mongo.

Repository also contains:

  • Tool for seeding database
  • Simple API for testing request to database

Agent usage

CLI agruments

ArgumentDescriptionRequiredDefault
--uriURI to MongoDBtruenone
--dbDatabase nametruenone
--colCollection nametruenone
--workersURI to MongoDBfalse10
--portAmount of workers that handle deletionsfalse80

API

MethodURIDescription
POSTdelete/{clientId}Delete data for whole Client
POSTdelete/{clientId}/{userId}Delete data for specific User
GETexists/{clientId}Check if Client has any data
GETexists/{clientId}/{userId}Check if User has any data

# Packages

No description provided by the author