https://github.com/junzhli/btcd-address-indexing-worker
Bitcoin Address Indexing Worker
https://github.com/junzhli/btcd-address-indexing-worker
bitcoin btcd golang mongodb rabbitmq redis
Last synced: 4 days ago
JSON representation
Bitcoin Address Indexing Worker
- Host: GitHub
- URL: https://github.com/junzhli/btcd-address-indexing-worker
- Owner: junzhli
- License: mit
- Created: 2019-11-25T08:51:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T06:39:11.000Z (about 6 years ago)
- Last Synced: 2025-08-14T18:38:49.484Z (12 months ago)
- Topics: bitcoin, btcd, golang, mongodb, rabbitmq, redis
- Language: Go
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Bitcoin address indexing worker
[](https://travis-ci.org/junzhli/btcd-address-indexing-worker) [](https://opensource.org/licenses/MIT) [](https://godoc.org/github.com/junzhli/btcd-address-indexing-worker)
Bitcoin Address Indexing Worker provides the web service [btcd-address-indexing-service](https://github.com/junzhli/btcd-address-indexing-service) with additional indexing, caching mechanisms and address relevant information lookups
## Table of Contents
- [Bitcoin address indexing worker](#bitcoin-address-indexing-worker)
- [Table of Contents](#table-of-contents)
- [More information](#more-information)
- [Building and test](#building-and-test)
- [Configuration and Run](#configuration-and-run)
- [Author](#author)
- [License](#license)
More information
-----
(Refer to [btcd-address-indexing-service](https://github.com/junzhli/btcd-address-indexing-service))
Building and test
-----
* Pulling repository
```bash
$ go get -v github.com/junzhli/btcd-address-indexing-worker
$ cd $GOPATH/src/github.com/junzhli/btcd-address-indexing-worker
```
* Test
```bash
$ go test ./...
```
* Build
```bash
$ go install # should install executable program under $GOPATH/bin
```
Configuration and Run
-----
* Configurable options
**Please set environment variables with file called `.env` and place this under the current path where you run this program on shell. You can begin with file `.env.template` for reference**
| Name | Required | Default value | Description |
|-----------------------|----------|-----------------|--------------------------------------|
| MONGO_HOST | N | 127.0.0.1:27017 | MongoDB Host[:Port] |
| MONGO_USER | N | | MongoDB User |
| MONGO_PASSWORD | N | | MongoDB Password |
| REDIS_HOST | N | 127.0.0.1:6379 | Redis Host[:Port] |
| REDIS_PASSWORD | N | | Redis protected password |
| RABBITMQ_HOST | N | 127.0.0.1:5672 | RabbitMQ Host[:Port] |
| RABBITMQ_USER | N | guest | RabbitMQ User |
| RABBITMQ_PASSWORD | N | guest | RabbitMQ Password |
| BTCD_JSONRPC_HOST | N | 127.0.0.1:8334 | Btcd JSON-RPC Host[:Port] |
| BTCD_JSONRPC_USER | N | | Btcd JSON-RPC User |
| BTCD_JSONRPC_PASSWORD | N | | Btcd JSON-RPC Password |
| BTCD_JSONRPC_TIMEOUT | N | 600 | Btcd JSON-RPC Read Timeout (seconds) |
* For development
```bash
$ go run main.go
```
* For production
```bash
# Please follow build step at first
$ btcd-address-indexing-worker
```
Author
-----
Jeremy Li
License
-----
MIT License