retriever

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(
	storeProvider func(channelID string) storeapi.Store,
	ledgerProvider func(channelID string) ledger.PeerLedger,
	gossipProvider func() supportapi.GossipAdapter,
	blockPublisherProvider func(channelID string) gossipapi.BlockPublisher) storeapi.Provider

NewProvider returns a new transient data Retriever provider

Types

type Provider

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

Provider is a transient data provider.

func (*Provider) RetrieverForChannel

func (p *Provider) RetrieverForChannel(channelID string) storeapi.Retriever

RetrieverForChannel returns the collection retriever for the given channel

type Support

type Support interface {
	Config(channelID, ns, coll string) (*cb.StaticCollectionConfig, error)
	Policy(channel, ns, collection string) (privdata.CollectionAccessPolicy, error)
	BlockPublisher(channelID string) gossipapi.BlockPublisher
}

Support defines the supporting functions required by the transient data provider

Jump to

Keyboard shortcuts

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