Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
func Cmd(cf *ChannelCmdFactory) *cobra.Command
Cmd returns the cobra command for Node 绑定 channel 功能命令
Types ¶
type BroadcastClientFactory ¶
type BroadcastClientFactory func() (common.BroadcastClient, error)
type ChannelCmdFactory ¶
type ChannelCmdFactory struct { EndorserClient pb.EndorserClient // 背书客户端 Signer msp.SigningIdentity // 签名者 BroadcastClient common.BroadcastClient // 用于广播的客户端 DeliverClient deliverClientIntf // 用于上交 Orderer 的客户端 BroadcastFactory BroadcastClientFactory // 创建用于广播的客户端的工厂 }
ChannelCmdFactory holds the clients used by ChannelCmdFactory
func InitCmdFactory ¶
func InitCmdFactory(isEndorserRequired, isPeerDeliverRequired, isOrdererRequired bool) (*ChannelCmdFactory, error)
InitCmdFactory init the ChannelCmdFactory with clients to endorser and orderer according to params
type ConfigTxFileNotFound ¶
type ConfigTxFileNotFound string
ConfigTxFileNotFound channel create configuration tx file not found
func (ConfigTxFileNotFound) Error ¶
func (e ConfigTxFileNotFound) Error() string
type GBFileNotFoundErr ¶
type GBFileNotFoundErr string
GBFileNotFoundErr genesis block file not found
func (GBFileNotFoundErr) Error ¶
func (e GBFileNotFoundErr) Error() string
type InvalidCreateTx ¶
type InvalidCreateTx string
InvalidCreateTx invalid channel create transaction
func (InvalidCreateTx) Error ¶
func (e InvalidCreateTx) Error() string
type ProposalFailedErr ¶
type ProposalFailedErr string
ProposalFailedErr proposal failed
func (ProposalFailedErr) Error ¶
func (e ProposalFailedErr) Error() string
Click to show internal directories.
Click to hide internal directories.