metaparser

module
v0.0.0-...-ed86741 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT

README

metaparser

A project to parse meta information to extract IPs/ CIDRs from Github, Cloudflare and AWS (and more) for whitelisting. The output is produced in an nginx compatible format so you can use the binary executable in your cron to automatically refresh the list of IPs.

This project directly utilizes the following open sources projects:

  1. Cobra for implementing the CLI interactions
  2. Go-Resty as its HTTP client library
  3. Govvv to add version information during its build process
  4. Logrus as its logging library
  5. Dotsql for SQL migrations (not being used currently)
  6. Gopsutil - CPU for CPU information (not being used currently)
  7. Gopsutil - Load for system load information (not being used currently)
  8. Viper for reading configuration files
  9. Times for file times (atime, mtime, ctime, btime)

Code tries to conform to the Golang Standards Project layout template

Building

  1. Install Govvv

  2. Clone the repository

    git clone https://github.com/shammishailaj/metaparser.git
    
  3. Change into the directory

    cd metaparser
    
  4. Issue the build command

    make build
    
Or, grab the latest release from the releases page

Command Reference

  1. help

To display help about a command

Invoked By: metaparser help [command]

For detailed documentation, use the inbuilt command docs to generate the documentation. For help on using the docs command use:

metaparser help docs

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

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