blockchain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FabricProxy_BlockHeight   = "height"
	FabricProxy_TransactionID = "txID"
)

Variables

This section is empty.

Functions

func SetParsers

func SetParsers(m map[string]abchainTx.TxArgParser)

Types

type BlockChainRouter

type BlockChainRouter struct {
	*web.Router
}

func CreateBlockChainRouter

func CreateBlockChainRouter(root util.RPCRouter, path string) BlockChainRouter

func (BlockChainRouter) BuildRoutes

func (r BlockChainRouter) BuildRoutes()

func (BlockChainRouter) Init

type ChainBlock

type ChainBlock struct {
	*client.ChainBlock
	Transactions []*ChainTransaction `json:",omitempty"`
	TxEvents     []*ChainTxEvents    `json:",omitempty"`
}

type ChainTransaction

type ChainTransaction struct {
	*client.ChainTransaction
	//Data for the original protobuf input (Message part) and Detail left for parser
	ChaincodeModule, Nonce string
	TimeLock               string      `json:"expiredAt,omitempty"`
	Detail, Data           interface{} `json:",omitempty"`
	TxHash                 string      `json:",omitempty"`
}

type ChainTxEvents

type ChainTxEvents struct {
	*client.ChainTxEvents
	Detail, Data interface{} `json:",omitempty"`
}

type FabricBlockChain

type FabricBlockChain struct {
	*util.FabricRPCBase
	// contains filtered or unexported fields
}

func (*FabricBlockChain) GetBlock

func (s *FabricBlockChain) GetBlock(rw web.ResponseWriter, req *web.Request)

func (*FabricBlockChain) GetBlockchainInfo

func (s *FabricBlockChain) GetBlockchainInfo(rw web.ResponseWriter, req *web.Request)

func (*FabricBlockChain) GetTransaction

func (s *FabricBlockChain) GetTransaction(rw web.ResponseWriter, req *web.Request)

func (*FabricBlockChain) ParseTransaction

func (s *FabricBlockChain) ParseTransaction(rw web.ResponseWriter, req *web.Request)

Jump to

Keyboard shortcuts

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