channelpeer

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelPeer

type ChannelPeer struct {
	fabApi.Peer
	// contains filtered or unexported fields
}

ChannelPeer extends Peer and adds channel ID and block height

func New

func New(peer fabApi.Peer, channelID string, blockHeight uint64) (*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) String

func (p *ChannelPeer) String() string

String returns the string representation of the ChannelPeer

Jump to

Keyboard shortcuts

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