mongo-delete-agent

module
v0.0.0-...-4468414 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT

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
Argument Description Required Default
--uri URI to MongoDB true none
--db Database name true none
--col Collection name true none
--workers URI to MongoDB false 10
--port Amount of workers that handle deletions false 80
API
Method URI Description
POST delete/{clientId} Delete data for whole Client
POST delete/{clientId}/{userId} Delete data for specific User
GET exists/{clientId} Check if Client has any data
GET exists/{clientId}/{userId} Check if User has any data

Directories

Path Synopsis
src
cmd/agent command
cmd/seeder command
cmd/web command
web

Jump to

Keyboard shortcuts

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