btclib

package
v0.0.0-...-56839b2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2015 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

blockRead.go

mongoDB.go

options.go

rethinkDB

riakDB

rpcCall.go

transactionRead.go

Index

Constants

View Source
const (
	//	DnsSeed ['dnsseed.bluematt.me', 'dnsseed.bitcoin.dashjr.org', 'seed.bitcoinstats.com', 'bitseed.xf2.org']
	User     = "info"
	Password = "passw0rd"
	//	MongoD         = "10.39.81.90:49153"
	MongoD   = "10.39.81.90:27017"
	BitcoinD = "http://10.39.81.85:8332"
)

Variables

View Source
var (
	Riak    = []string{"10.39.80.181:8087", "10.39.80.182:8087", "10.39.80.183:8087", "10.39.80.184:8087", "10.39.80.185:8087", "10.39.80.186:8087"}
	Rethink = []string{"10.39.80.182:28015", "10.39.80.183:28015", "10.39.80.184:28015", "10.39.80.185:28015", "10.39.80.186:28015", "10.39.80.181:28015"}
	Mongo   = []string{"10.39.80.182:27018", "10.39.80.183:27018", "10.39.80.184:27018", "10.39.80.185:27018", "10.39.80.186:27018", "10.39.80.181:27018"}
)

Functions

func AllTxInsert

func AllTxInsert()

func BlockCount

func BlockCount() float64

func BlockHash

func BlockHash(block int) string

func BlockInsert

func BlockInsert(opt string)

func BlockTxInsert

func BlockTxInsert()

func BlockVerify

func BlockVerify()

func BlockVerifyRt

func BlockVerifyRt()

func GetTransaction

func GetTransaction(tx interface{}) map[string]interface{}

GetTransaction get a transaction with hash = tx

func InsertBlocksRt

func InsertBlocksRt()

func InsertTxRt

func InsertTxRt()

func OpenRiak

func OpenRiak()

func TestRT

func TestRT()

Types

type Options

type Options struct {
	User     string
	Password string
	Port     string
	Host     string
}

type Request

type Request struct {
	Jsonrpc string      `json:"jsonrpc"`
	Id      int64       `json:"id"`
	Method  string      `json:"method"`
	Params  interface{} `json:"params"`
}

type RequestInt

type RequestInt struct {
	Jsonrpc string `json:"jsonrpc"`
	Id      int64  `json:"id"`
	Method  string `json:"method"`
	Params  []int  `json:"params"`
}

type RequestString

type RequestString struct {
	Jsonrpc string   `json:"jsonrpc"`
	Id      int64    `json:"id"`
	Method  string   `json:"method"`
	Params  []string `json:"params"`
}

Jump to

Keyboard shortcuts

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