factory

package
v0.0.0-...-6665de4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MPerfQueryServiceProviderFactory

type MPerfQueryServiceProviderFactory struct {
	defsvc.ProviderFactory
	IsPeerFilterMandatory bool
}

MPerfQueryServiceProviderFactory A fabric-sdk service provider with a static Selection Provider, in order to query one specific peer

func NewMPerfQueryServiceProviderFactory

func NewMPerfQueryServiceProviderFactory(isPeerFilterMandatory bool) *MPerfQueryServiceProviderFactory

NewMPerfQueryServiceProviderFactory create a new instance of MPerfQueryServiceProviderFactory

func (*MPerfQueryServiceProviderFactory) CreateChannelProvider

func (f *MPerfQueryServiceProviderFactory) CreateChannelProvider(config fab.EndpointConfig) (fab.ChannelProvider, error)

CreateChannelProvider return a new implementation of OneOfSelectionProvider

type MPerfServiceProviderFactory

type MPerfServiceProviderFactory struct {
	defsvc.ProviderFactory
	// contains filtered or unexported fields
}

MPerfServiceProviderFactory A fabric-sdk service provider factory customized to Marbles needs. In particular, the selection provider created by this factory is a Dynamic Selection Provider

func NewMPerfServiceProviderFactory

func NewMPerfServiceProviderFactory(userID string) *MPerfServiceProviderFactory

NewMPerfServiceProviderFactory create a new instance of MPerfServiceProviderFactory

func (*MPerfServiceProviderFactory) CreateChannelProvider

func (f *MPerfServiceProviderFactory) CreateChannelProvider(config fab.EndpointConfig) (fab.ChannelProvider, error)

CreateChannelProvider returns a new implementation of dynamic selection channel provider

type OneOfSelectionProvider

type OneOfSelectionProvider struct {
	fab.ChannelProvider
	IsPeerFilterMandatory bool
}

OneOfSelectionProvider implements a selection provider that randomly chooses a peer from the list of available peers

func (*OneOfSelectionProvider) ChannelService

func (cp *OneOfSelectionProvider) ChannelService(ctx fab.ClientContext, channelID string) (fab.ChannelService, error)

ChannelService creates a ChannelService

func (*OneOfSelectionProvider) Initialize

func (cp *OneOfSelectionProvider) Initialize(providers context.Providers) error

Initialize sets the provider context

Jump to

Keyboard shortcuts

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