Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + const CmdRoot + const UndefinedParamValue + var GetBroadcastClientFnc func() (BroadcastClient, error) + var GetCertificateFnc func() (tls.Certificate, error) + var GetDefaultSignerFnc func() (msp.SigningIdentity, error) + var GetDeliverClientFnc func(address, tlsRootCertFile string) (pb.Deliver_DeliverClient, error) + var GetEndorserClientFnc func(address, tlsRootCertFile string) (pb.EndorserClient, error) + var GetOrdererEndpointOfChainFnc func(chainID string, signer Signer, endorserClient pb.EndorserClient, ...) ([]string, error) + var GetPeerDeliverClientFnc func(address, tlsRootCertFile string) (pb.DeliverClient, error) + var OrderingEndpoint string + func AddOrdererFlags(cmd *cobra.Command) + func CheckLogLevel(level string) error + func GetCertificate() (tls.Certificate, error) + func GetDefaultSigner() (msp.SigningIdentity, error) + func GetDeliverClient(address, tlsRootCertFile string) (pb.Deliver_DeliverClient, error) + func GetEndorserClient(address, tlsRootCertFile string) (pb.EndorserClient, error) + func GetMockEndorserClient(response *pb.ProposalResponse, err error) pb.EndorserClient + func GetOrdererEndpointOfChain(chainID string, signer Signer, endorserClient pb.EndorserClient, ...) ([]string, error) + func GetPeerDeliverClient(address, tlsRootCertFile string) (pb.DeliverClient, error) + func GetSnapshotClient(address, tlsRootCertFile string) (pb.SnapshotClient, error) + func InitCmd(cmd *cobra.Command, args []string) + func InitConfig(cmdRoot string) error + func InitCrypto(mspMgrConfigDir, localMSPID, localMSPType string) error + func SetBCCSPKeystorePath() + func SetOrdererEnv(cmd *cobra.Command, args []string) + type BroadcastClient interface + Close func() error + Send func(env *cb.Envelope) error + func GetBroadcastClient() (BroadcastClient, error) + func GetMockBroadcastClient(err error) BroadcastClient + type BroadcastGRPCClient struct + Client ab.AtomicBroadcast_BroadcastClient + func (s *BroadcastGRPCClient) Close() error + func (s *BroadcastGRPCClient) Send(env *cb.Envelope) error + type CAConfig struct + CaName string + HTTPOptions map[string]interface{} + Registrar EnrollCredentials + TLSCACerts MutualTLSConfig + URL string + type CCType struct + Path string + type ChannelNetworkConfig struct + Chaincodes []string + Orderers []string + Peers map[string]PeerChannelConfig + type ClientConfig struct + CredentialStore CredentialStoreType + CryptoConfig CCType + Logging LoggingType + Organization string + TLS TLSType + type CommonClient struct + Address string + type CredentialStoreType struct + CryptoStore struct{ ... } + Path string + Wallet string + type DeliverClient struct + BestEffort bool + ChannelID string + Service ab.AtomicBroadcast_DeliverClient + Signer identity.SignerSerializer + TLSCertHash []byte + func NewDeliverClientForOrderer(channelID string, signer identity.SignerSerializer, bestEffort bool) (*DeliverClient, error) + func NewDeliverClientForPeer(channelID string, signer identity.SignerSerializer, bestEffort bool) (*DeliverClient, error) + func (d *DeliverClient) Close() error + func (d *DeliverClient) GetNewestBlock() (*cb.Block, error) + func (d *DeliverClient) GetOldestBlock() (*cb.Block, error) + func (d *DeliverClient) GetSpecifiedBlock(num uint64) (*cb.Block, error) + type EnrollCredentials struct + EnrollID string + EnrollSecret string + type LoggingType struct + Level string + type MutualTLSConfig struct + Client TLSKeyPair + Path string + Pem []string + type NetworkConfig struct + CertificateAuthorities map[string]CAConfig + Channels map[string]ChannelNetworkConfig + Client ClientConfig + Description string + Name string + Orderers map[string]OrdererConfig + Organizations map[string]OrganizationConfig + Peers map[string]PeerConfig + Version string + Xtype string + func GetConfig(fileName string) (*NetworkConfig, error) + type OrdererClient struct + func NewOrdererClientFromEnv() (*OrdererClient, error) + func (oc *OrdererClient) Broadcast() (ab.AtomicBroadcast_BroadcastClient, error) + func (oc *OrdererClient) Certificate() tls.Certificate + func (oc *OrdererClient) Deliver() (ab.AtomicBroadcast_DeliverClient, error) + type OrdererConfig struct + GrpcOptions map[string]interface{} + TLSCACerts TLSConfig + URL string + type OrganizationConfig struct + AdminPrivateKey TLSConfig + CertificateAuthorities []string + CryptoPath string + MspID string + Peers []string + SignedCert TLSConfig + type PeerChannelConfig struct + ChaincodeQuery bool + EndorsingPeer bool + EventSource bool + LedgerQuery bool + type PeerClient struct + func NewPeerClientForAddress(address, tlsRootCertFile string) (*PeerClient, error) + func NewPeerClientFromEnv() (*PeerClient, error) + func (pc *PeerClient) Certificate() tls.Certificate + func (pc *PeerClient) Deliver() (pb.Deliver_DeliverClient, error) + func (pc *PeerClient) Endorser() (pb.EndorserClient, error) + func (pc *PeerClient) PeerDeliver() (pb.DeliverClient, error) + func (pc *PeerClient) SnapshotClient() (pb.SnapshotClient, error) + type PeerConfig struct + EventURL string + GRPCOptions map[string]interface{} + TLSCACerts TLSConfig + URL string + type Signer interface + Serialize func() ([]byte, error) + Sign func(msg []byte) ([]byte, error) + type TLSConfig struct + Path string + Pem string + type TLSKeyPair struct + Cert TLSConfig + Key TLSConfig + type TLSType struct + Enabled bool Other modules containing this package github.com/waszqt/fabric