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 ¶
func (s *CollectionConfigRetriever) Config(ns, coll string) (*common.StaticCollectionConfig, error)
Config returns the configuration for the given collection
func (*CollectionConfigRetriever) Policy ¶
func (s *CollectionConfigRetriever) Policy(ns, coll string) (privdata.CollectionAccessPolicy, error)
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
Click to show internal directories.
Click to hide internal directories.