Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelPeer ¶
ChannelPeer extends Peer and adds channel ID and block height
func New ¶
func New(peer fabApi.Peer, channelID string, blockHeight uint64, memService memberapi.Service) (*ChannelPeer, error)
New creates a new ChannelPeer
func (*ChannelPeer) BlockHeight ¶
func (p *ChannelPeer) BlockHeight() uint64
BlockHeight returns the block height of the peer in the channel
func (*ChannelPeer) ChannelID ¶
func (p *ChannelPeer) ChannelID() string
ChannelID returns the channel ID of the ChannelPeer
func (*ChannelPeer) GetBlockHeight ¶
func (p *ChannelPeer) GetBlockHeight(channelID string) uint64
GetBlockHeight returns the block height of the peer in the specified channel
func (*ChannelPeer) String ¶
func (p *ChannelPeer) String() string
String returns the string representation of the ChannelPeer
Click to show internal directories.
Click to hide internal directories.