client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance(config api.Config) (api.Client, error)

GetInstance returns a singleton instance of the fabric client

func GetMembershipInstance

func GetMembershipInstance(config api.Config) api.MembershipManager

GetMembershipInstance returns an instance of the membership manager

func NewSelectionService

func NewSelectionService(config api.Config) api.SelectionService

NewSelectionService creates a selection service

Types

type ChannelPeerImpl added in v0.1.4

type ChannelPeerImpl struct {
	sdkApi.Peer
	// contains filtered or unexported fields
}

ChannelPeerImpl implements ChannelPeer

func NewChannelPeer added in v0.1.4

func NewChannelPeer(peer sdkApi.Peer, channelID string, blockHeight uint64) *ChannelPeerImpl

NewChannelPeer creates a new ChannelPeer

func (*ChannelPeerImpl) BlockHeight added in v0.1.4

func (p *ChannelPeerImpl) BlockHeight() uint64

BlockHeight returns the block height of the peer in the channel

func (*ChannelPeerImpl) ChannelID added in v0.1.4

func (p *ChannelPeerImpl) ChannelID() string

ChannelID returns the channel ID of the ChannelPeer

func (*ChannelPeerImpl) GetBlockHeight added in v0.1.4

func (p *ChannelPeerImpl) GetBlockHeight(channelID string) uint64

GetBlockHeight returns the block height of the peer in the specified channel

func (*ChannelPeerImpl) String added in v0.1.4

func (p *ChannelPeerImpl) String() string

String returns the string representation of the ChannelPeer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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