Giter VIP home page Giter VIP logo

scan-api's Introduction

Scan API

Env

recommend

go 1.10+
mongo 3.6.3

Project structure

┌── api: api interface
│   ├── handlers: router handler
│   └── routers:  the http router
├── chart: chart data processor
│   ├── address: address chart processor
│   ├── block: block count and reward chart processor
│   ├── blockdifficulty: block difficulty chart processor
│   ├── blocktime: block average time chart processor
│   ├── hashrate: hashrate chart processor
│   ├── topminers: topminers chart processor
│   ├── tx_history: transaction hsitory chart processor
├── cmd: app entrance
|   ├── chart_service: chart service entrance
|   ├── node_service: node service entrance
|   ├── seele_syncer: seele syncer entrance
│   └── scan_server:  http service entrance
├── database: mongodb database
├── log: third logger warpper
├── node: node service
├── rpc:  json rpc
├── server:  scan server
└── vendor: third dependencies

Start

cd scan-api
# generate the executable file
make
# start seele_syncer
./build/syncer/seele_syncer -c server.json
# start scan_server
./build/server/scan_server -c server.json
# start chart_service
./build/chart/chart_service -c server.json
# start node_service
./build/node/node_service -c server.json

Config


"GinMode":"debug"
# gin run mode, format ip:port

"Addr": ":8888"
# server listen address and port

"LimitConnection": 0
# connection limit number

"DefaultHammerTime": 30
# connection limit number

"RpcURL": "127.0.0.1:55028"
# seele node rpc address and port

"WriteLog": true
# enable write log out

"LogLevel": "debug"
# log level

"LogFile": "scan-api.log"
# log filename

"MaxHeaderBytes": 20
"ReadTimeout":300,
"IdleTimeout": 0,
"WriteTimeout":120,
# gin settting

"DataBaseConnUrl":"127.0.0.1:27017",
"DataBaseName":"seele",
# mongodb name address and port 

"Interval":30
# sync interval

scan-api's People

Contributors

ypenghui6 avatar raomiao avatar herove avatar

Watchers

James Cloos avatar MiyaFlower avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.