Documentation ¶
Index ¶
- func CreateChannel(osnURL string, block *cb.Block, caCertPool *x509.CertPool, ...) (*http.Response, error)
- func GetBlockChainInfo(ctx context.Context, connection grpc.ClientConnInterface, ...) (*cb.BlockchainInfo, error)
- func GetConfigBlock(ctx context.Context, connection grpc.ClientConnInterface, ...) (*cb.Block, error)
- func GetConfigBlockFromOrderer(ctx context.Context, connection grpc.ClientConnInterface, ...) (*cb.Block, error)
- func JoinChannel(ctx context.Context, connection grpc.ClientConnInterface, ...) error
- func ListChannelOnPeer(ctx context.Context, connection grpc.ClientConnInterface, ...) ([]*peer.ChannelInfo, error)
- type ChannelList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChannel ¶
func GetBlockChainInfo ¶
func GetBlockChainInfo(ctx context.Context, connection grpc.ClientConnInterface, id identity.SigningIdentity, channelID string) (*cb.BlockchainInfo, error)
GetBlockChainInfo get chain info
func GetConfigBlock ¶
func GetConfigBlock(ctx context.Context, connection grpc.ClientConnInterface, id identity.SigningIdentity, channelID string) (*cb.Block, error)
GetConfigBlock get block config
func GetConfigBlockFromOrderer ¶
func GetConfigBlockFromOrderer(ctx context.Context, connection grpc.ClientConnInterface, id identity.SigningIdentity, channelID string, certificate tls.Certificate) (*cb.Block, error)
func JoinChannel ¶
func JoinChannel(ctx context.Context, connection grpc.ClientConnInterface, id identity.SigningIdentity, block *cb.Block) error
func ListChannelOnPeer ¶
func ListChannelOnPeer(ctx context.Context, connection grpc.ClientConnInterface, id identity.SigningIdentity) ([]*peer.ChannelInfo, error)
Types ¶
type ChannelList ¶
type ChannelList struct { SystemChannel interface{} `json:"systemChannel"` Channels []struct { Name string `json:"name"` URL string `json:"url"` } `json:"channels"` }
func ListChannel ¶
func ListChannel(osnURL string, caCertPool *x509.CertPool, tlsClientCert tls.Certificate) (ChannelList, error)
Click to show internal directories.
Click to hide internal directories.