Categorygithub.com/AdithyanMS/mta-hosting-optimizer
repositorypackage
0.0.0-20230804105718-a1483f6d639f
Repository: https://github.com/adithyanms/mta-hosting-optimizer.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

mta-hosting-optimizer

This project implements a server which has a HTTP/REST endpoint used to retrieve hostnames having less or equals X active IP addresses. The Hosts and their respective data is fetched from sample_data/sample_data.go.

Usage instructions:

1. Download the repository

git clone https://github.com/AdithyanMS/mta-hosting-optimizer.git

2. cd into mta-hosting-optimizer

cd mta-hosting-optimizer

3. run the code

go run .

That's it :) . now you have a server running at the port specified in main.go.

Default value of X is 1. For changing this value, add a .env file in the project directory and set the desired value of X in variable MIN_IP_COUNT

.env
MIN_IP_COUNT=0

Endpoints:

/inefficient_hosts

Request Method:"GET"
Request Body: nil
Request Parameters:nil
Response: []string