on producer node
go run main.go producer -c conf.dev.tomlon multiple consumer nodes
go run main.go consumer -c conf.dev.tomlopen api docs
http://producer_ip:9091/swagger/index.htmlinit api docs
swag init -o core/swaggerβββ common
β βββ async # init goroutine pool
β β βββ worker.go
β β βββ workerpool.go
β βββ cert # gRPC certificate
β β βββ ca.key
β β βββ ca.pem
β β βββ ca.srl
β β βββ client.csr
β β βββ client.key
β β βββ client.pem
β β βββ openssl.cnf
β β βββ server.csr
β β βββ server.key
β β βββ server.pem
β βββ consul # consul register service
β β βββ consul.go
β β βββ consul_test.go
β βββ http
β β βββ http.go
β β βββ http_test.go
β βββ log
β β βββ log.go
β β βββ log_test.go
β βββ mongo
β β βββ config.go
β β βββ mongo.go
β βββ redis
β β βββ config.go
β β βββ redis.go
β βββ utils # public tools
β β βββ utils.go
β β βββ utils_test.go
β β βββ xlsx.go
β β βββ xlsx_test.go
β βββ wp # weak password list
β βββ list
β βββ parser.go
β βββ parser_test.go
βββ conf.dev.toml # development configuration
βββ conf.prod.toml # production configuration
βββ core
β βββ cmd # cli run
β β βββ consumer.go
β β βββ producer.go
β βββ config # init conf.*.toml
β β βββ conf.go
β βββ dao
β β βββ mongo.go
β β βββ mongo_test.go
β β βββ redis.go
β β βββ redis_test.go
β β βββ repo.go
β βββ discover # consul discover service
β β βββ discover.go
β βββ errors
β β βββ business_error.go
β β βββ errors.go
β βββ global
β β βββ enum.go
β β βββ global.go
β βββ grpc # gRPC server and client
β β βββ consumer
β β β βββ client.go
β β βββ producer
β β β βββ server.go
β β βββ proto
β β βββ stream.pb.go
β β βββ stream.proto
β βββ host # get nodes info
β β βββ host.go
β β βββ host_test.go
β βββ management
β β βββ grpc.go
β β βββ rule.go
β β βββ scan.go
β β βββ task.go
β βββ models
β β βββ grpc.go
β β βββ models.go
β β βββ response.go
β β βββ rule.go
β β βββ scan.go
β βββ router
β β βββ router.go
β β βββ v1
β β βββ api.go
β β βββ grpc.go
β β βββ rule.go
β β βββ scan.go
β β βββ task.go
β βββ scan # define scan tasks here
β β βββ dispatch.go
β β βββ mysql.go
β β βββ redis.go
β β βββ scan.go
β β βββ ssh.go
β βββ server # restful web and graceful shutdown service
β β βββ server.go
β βββ swagger # api docs
β βββ docs.go
β βββ swagger.json
β βββ swagger.yaml
βββ doc
β βββ scan.jpg
βββ go.mod
βββ go.sum
βββ LICENSE
βββ main.go
βββ README.mdContributors are welcome, please fork and send pull requests! If you find a bug or have any ideas on how to improve this project please submit an issue.
