support

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCollectionConfigRetriever

func InitCollectionConfigRetriever(channelID string, ledger peerLedger, blockPublisher blockPublisher)

InitCollectionConfigRetriever initializes a collection config retriever for the given channel

Types

type CollectionConfigRetriever

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

CollectionConfigRetriever loads and caches collection configuration and policies

func CollectionConfigRetrieverForChannel

func CollectionConfigRetrieverForChannel(channelID string) *CollectionConfigRetriever

CollectionConfigRetrieverForChannel returns the collection config retriever for the given channel

func (*CollectionConfigRetriever) Config

Config returns the configuration for the given collection

func (*CollectionConfigRetriever) Policy

Policy returns the collection access policy

type Support

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

Support holds the ledger provider and the cache

func New

func New(blockPublisherProvider blockPublisherProvider) *Support

New creates a new Support using the ledger provider

func (*Support) BlockPublisher

func (s *Support) BlockPublisher(channelID string) gossipapi.BlockPublisher

BlockPublisher returns the block publisher for the given channel

func (*Support) Config

func (s *Support) Config(channelID, ns, coll string) (*common.StaticCollectionConfig, error)

Config returns the configuration for the given collection

func (*Support) Policy

func (s *Support) Policy(channelID, ns, coll string) (privdata.CollectionAccessPolicy, error)

Policy returns the collection access policy for the given collection

Jump to

Keyboard shortcuts

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