Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
github.com/abhisek/asn-search-api
A Golang API over MaxMind ASN database
data/asn.db
0.0.0.0:8000
by default (Customize with HOST
and PORT
environment variable)docker run -p 8000:8000 abh1sek/asn-search-api
curl -s http://localhost:8000/domain/example.com
curl -s http://localhost:8000/org/example+technologies
OrgName
should be URL Encoded
Ensure go tool chain is setup correctly
make
asn-search-api
tool to create indexed database./asn-search-api -mode mkdb \
-db data/asn.db \
-type ipv4 \
-file GeoLite2-ASN-CSV_20190101/GeoLite2-ASN-Blocks-IPv4.csv
./asn-search-api -mode mkdb \
-db data/asn.db \
-type ipv6 \
-file GeoLite2-ASN-CSV_20190101/GeoLite2-ASN-Blocks-IPv6.csv
gcloud run deploy \
asn-search-api \
--platform=managed \
--image=gcr.io/<projectName>/asn-search-api:latest \
--memory=512Mi \
--timeout=30s \
--labels=app=asn-search-api \
--allow-unauthenticated \
--region=us-central1
main.go
and create its own packageFAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.