fabric: github.com/hyperledger/fabric/peer/channel Index | Files

package channel

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


Package Files

channel.go create.go fetch.go getinfo.go join.go list.go signconfigtx.go update.go


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

func AddFlags Uses

func AddFlags(cmd *cobra.Command)

AddFlags adds flags for create and join

func Cmd Uses

func Cmd(cf *ChannelCmdFactory) *cobra.Command

Cmd returns the cobra command for Node

type BroadcastClientFactory Uses

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

type ChannelCmdFactory Uses

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

ChannelCmdFactory holds the clients used by ChannelCmdFactory

func InitCmdFactory Uses

func InitCmdFactory(isEndorserRequired, isPeerDeliverRequired, isOrdererRequired bool) (*ChannelCmdFactory, error)

InitCmdFactory init the ChannelCmdFactory with clients to endorser and orderer according to params

type ConfigTxFileNotFound Uses

type ConfigTxFileNotFound string

ConfigTxFileNotFound channel create configuration tx file not found

func (ConfigTxFileNotFound) Error Uses

func (e ConfigTxFileNotFound) Error() string

type GBFileNotFoundErr Uses

type GBFileNotFoundErr string

GBFileNotFoundErr genesis block file not found

func (GBFileNotFoundErr) Error Uses

func (e GBFileNotFoundErr) Error() string

type InvalidCreateTx Uses

type InvalidCreateTx string

InvalidCreateTx invalid channel create transaction

func (InvalidCreateTx) Error Uses

func (e InvalidCreateTx) Error() string

type ProposalFailedErr Uses

type ProposalFailedErr string

ProposalFailedErr proposal failed

func (ProposalFailedErr) Error Uses

func (e ProposalFailedErr) Error() string

Package channel imports 25 packages (graph) and is imported by 9 packages. Updated 2019-08-22. Refresh now. Tools for package owners.