...

Package channel

import "github.com/hyperledger/fabric/peer/channel"
Overview
Index

Overview ▾

Constants

const (
    EndorserRequired       bool = true
    EndorserNotRequired    bool = false
    OrdererRequired        bool = true
    OrdererNotRequired     bool = false
    PeerDeliverRequired    bool = true
    PeerDeliverNotRequired bool = false
)

func AddFlags

func AddFlags(cmd *cobra.Command)

AddFlags adds flags for create and join

func Cmd

func Cmd(cf *ChannelCmdFactory) *cobra.Command

Cmd returns the cobra command for Node

type BroadcastClientFactory

type BroadcastClientFactory func() (common.BroadcastClient, error)

type ChannelCmdFactory

ChannelCmdFactory holds the clients used by ChannelCmdFactory

type ChannelCmdFactory struct {
    EndorserClient   pb.EndorserClient
    Signer           msp.SigningIdentity
    BroadcastClient  common.BroadcastClient
    DeliverClient    deliverClientIntf
    BroadcastFactory BroadcastClientFactory
}

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

ConfigTxFileNotFound channel create configuration tx file not found

type ConfigTxFileNotFound string

func (ConfigTxFileNotFound) Error

func (e ConfigTxFileNotFound) Error() string

type GBFileNotFoundErr

GBFileNotFoundErr genesis block file not found

type GBFileNotFoundErr string

func (GBFileNotFoundErr) Error

func (e GBFileNotFoundErr) Error() string

type InvalidCreateTx

InvalidCreateTx invalid channel create transaction

type InvalidCreateTx string

func (InvalidCreateTx) Error

func (e InvalidCreateTx) Error() string

type ProposalFailedErr

ProposalFailedErr proposal failed

type ProposalFailedErr string

func (ProposalFailedErr) Error

func (e ProposalFailedErr) Error() string