Skip to content

junzhli/btcd-address-indexing-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin address indexing worker

Build Status License: MIT GoDoc
Bitcoin Address Indexing Worker provides the web service btcd-address-indexing-service with additional indexing, caching mechanisms and address relevant information lookups

Table of Contents

More information

(Refer to btcd-address-indexing-service)

Building and test

  • Pulling repository
$ go get -v github.com/junzhli/btcd-address-indexing-worker
$ cd $GOPATH/src/github.com/junzhli/btcd-address-indexing-worker
  • Test
$ go test ./...
  • Build
$ 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
$ go run main.go
  • For production
# Please follow build step at first
$ btcd-address-indexing-worker

Author

Jeremy Li

License

MIT License

Releases

No releases published

Packages

No packages published

Languages