discovery

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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