channel

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChannel

func CreateChannel(osnURL string, block *cb.Block, caCertPool *x509.CertPool, tlsClientCert tls.Certificate) (*http.Response, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL