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 ¶
ChannelUser contains user(identity) info to be used for specific channel
type Opt ¶
type Opt func(*SelectionProvider)
Opt applies a selection provider option
func WithCacheTimeout ¶
WithCacheTimeout sets the expiration timeout of the cache
func WithLoadBalancePolicy ¶
func WithLoadBalancePolicy(lbp pgresolver.LoadBalancePolicy) Opt
WithLoadBalancePolicy sets the load-balance policy
type SelectionProvider ¶
type SelectionProvider struct {
// contains filtered or unexported fields
}
SelectionProvider implements selection provider TODO: refactor users into client contexts
func New ¶
func New(config core.Config, users []ChannelUser, opts ...Opt) (*SelectionProvider, error)
New returns dynamic selection provider
func (*SelectionProvider) Close ¶
func (p *SelectionProvider) Close()
Close the selection services created by this provider
func (*SelectionProvider) CreateSelectionService ¶
func (p *SelectionProvider) CreateSelectionService(channelID string) (fab.SelectionService, error)
CreateSelectionService creates a selection service
func (*SelectionProvider) Initialize ¶
func (p *SelectionProvider) Initialize(providers contextAPI.Providers) error
Initialize allow for initializing providers
Click to show internal directories.
Click to hide internal directories.