Categorygithub.com/fasttrack-solutions/gin-middleware-ip-whitelist

# README

gin-middleware-ip-whitelist

IP whitelisting middleware that validates incoming requests against provided list. Responds 403 forbidden if no matches are found.

# Functions

IPWhiteList takes a map of IPs and a list of subnets and checks incoming requests for matches.
ParseIPs takes a list of IPs and checks for CIDR notation it returns a map and a slice of subnets.