retriever

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOffLedgerProvider added in v0.1.1

func NewOffLedgerProvider(providers *collcommon.Providers) olapi.Provider

NewOffLedgerProvider returns a new off-ledger retriever provider that supports DCAS

Types

type Provider

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

Provider is a transient data provider.

func NewProvider

func NewProvider() *Provider

NewProvider returns a new transient data Retriever provider

func (*Provider) Initialize added in v0.1.1

func (p *Provider) Initialize(tdProvider tdataapi.Provider, olProvider olapi.Provider) *Provider

Initialize is called at startup by the resource manager

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) (*pb.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