event

package
v0.0.0-...-cfcde66 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const RETRACE_FILE_NAME = "./retrace.json"

Variables

This section is empty.

Functions

func BuildGetBlockByNumberProposal

func BuildGetBlockByNumberProposal(creator []byte, signer *ecdsa.PrivateKey, channel string, number uint64) (*pb.SignedProposal, error)

func BuildGetChainInfoProposal

func BuildGetChainInfoProposal(creator []byte, signer *ecdsa.PrivateKey, channel string) (*pb.SignedProposal, error)

func BuildQueryTxProposal

func BuildQueryTxProposal(creator []byte, signer *ecdsa.PrivateKey, channel, txID string) (*pb.SignedProposal, error)

func GetBlockByNumber

func GetBlockByNumber(peerClient *endorser.PeerClient, channel string, number uint64, creator []byte, signer *ecdsa.PrivateKey) (*common.Block, error)

func GetChainInfo

func GetChainInfo(peerClient *endorser.PeerClient, channel string, creator []byte, signer *ecdsa.PrivateKey) (*common.BlockchainInfo, error)

func GetHeight

func GetHeight(peerClient *endorser.PeerClient, channel string, creator []byte, signer *ecdsa.PrivateKey) (uint64, error)

func InitRetracer

func InitRetracer(config RetraceConf) *retracer

func UnmarshalBlockFromProposalResponse

func UnmarshalBlockFromProposalResponse(response *pb.ProposalResponse) (*common.Block, error)

func UnmarshalChainInfoFromProposalResponse

func UnmarshalChainInfoFromProposalResponse(response *pb.ProposalResponse) (*common.BlockchainInfo, error)

Types

type ChaincodeEventInfo

type ChaincodeEventInfo struct {
	ChaincodeID string
	TxID        string
	EventName   string
	Payload     []byte
	ChannelID   string
}

type RetraceConf

type RetraceConf struct {
	PeerClient      *endorser.PeerClient
	Channel         string
	RetraceInterval time.Duration
	Creator         []byte
	Signer          interface{}
}

Jump to

Keyboard shortcuts

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