Documentation ¶
Index ¶
- func Create(channelID string, txFile []byte, mspOpt chaincode.MSPOpt, ...) (*common.Block, error)
- func Fetch(mspOpt chaincode.MSPOpt, orderers chaincode.Endpoint, channelID string, ...) (*common.Block, error)
- func GetChannelInfo(channelID string, mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) (*common.BlockchainInfo, error)
- func GetChannels(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) ([]*peer.ChannelInfo, error)
- func Join(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint, genesisBlock []byte) (*peer.ProposalResponse, error)
- func JoinBySnapshot(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint, snapshotPath string) (*peer.ProposalResponse, error)
- func JoinBySnapshotStatus(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) (*peer.JoinBySnapshotStatus, error)
- func SignConfigTx(channelID string, txFile []byte, mspOpt chaincode.MSPOpt) ([]byte, error)
- func Update(channelID string, updateConfig []byte, mspOpt chaincode.MSPOpt, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(channelID string, txFile []byte, mspOpt chaincode.MSPOpt, orderers []chaincode.Endpoint) (*common.Block, error)
Create create channel
func Fetch ¶
func Fetch(mspOpt chaincode.MSPOpt, orderers chaincode.Endpoint, channelID string, blockNum uint64) (*common.Block, error)
Fetch fetch specific block from orderer
func GetChannelInfo ¶
func GetChannelInfo(channelID string, mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) (*common.BlockchainInfo, error)
GetChannelInfo get channel infos
func GetChannels ¶
GetChannels get all channels from a peer
func Join ¶
func Join(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint, genesisBlock []byte) (*peer.ProposalResponse, error)
Join join a channel
func JoinBySnapshot ¶
func JoinBySnapshot(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint, snapshotPath string) (*peer.ProposalResponse, error)
JoinBySnapshot join channel by snapshot
func JoinBySnapshotStatus ¶
func JoinBySnapshotStatus(mspOpt chaincode.MSPOpt, peers chaincode.Endpoint) (*peer.JoinBySnapshotStatus, error)
JoinBySnapshotStatus get join by snapshot status
func SignConfigTx ¶
SignConfigTx sign config tx file to file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.