dynamicselection

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCPolicyProvider

type CCPolicyProvider interface {
	GetChaincodePolicy(chaincodeID string) (*common.SignaturePolicyEnvelope, error)
}

CCPolicyProvider retrieves policy for the given chaincode ID

type ChannelUser

type ChannelUser struct {
	ChannelID string
	UserName  string
	OrgName   string
}

ChannelUser contains user(identity) info to be used for specific channel

type SelectionProvider

type SelectionProvider struct {
	// contains filtered or unexported fields
}

SelectionProvider implements selection provider TODO: refactor users into client contexts

func NewSelectionProvider

func NewSelectionProvider(config apiconfig.Config, users []ChannelUser, lbp pgresolver.LoadBalancePolicy) (*SelectionProvider, error)

NewSelectionProvider returns dynamic selection provider

func (*SelectionProvider) Initialize

func (p *SelectionProvider) Initialize(sdk *fabsdk.FabricSDK) error

Initialize allow for initializing providers

func (*SelectionProvider) NewSelectionService

func (p *SelectionProvider) NewSelectionService(channelID string) (fab.SelectionService, error)

NewSelectionService creates a selection service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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