Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶ added in v0.1.0
type Peer struct {
// contains filtered or unexported fields
}
func NewPeer ¶ added in v0.1.0
func NewPeer(connection grpc.ClientConnInterface, id identity.SigningIdentity, options ...PeerOption) *Peer
func (*Peer) PeerMembershipQuery ¶ added in v0.1.0
func (p *Peer) PeerMembershipQuery(ctx context.Context, channel string, filter *peer.ChaincodeInterest) (*discovery.PeerMembershipResult, error)
PeerMembershipQuery returns information on peers that belong to the specified channel. If no filtering of results is required, nil can be supplied as the filter argument.
type PeerOption ¶ added in v0.1.0
type PeerOption func(*Peer)
PeerOption implements an option for creating a new Peer.
func WithTLSClientCertificateHash ¶ added in v0.1.0
func WithTLSClientCertificateHash(certificateHash []byte) PeerOption
WithTLSClientCertificateHash specifies the SHA-256 hash of the TLS client certificate. This option is required only if mutual TLS authentication is used for the gRPC connection to the peer.
Click to show internal directories.
Click to hide internal directories.