common

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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionConfigProvider

type CollectionConfigProvider interface {
	ForChannel(channelID string) support.CollectionConfigRetriever
}

CollectionConfigProvider provides collection config retrievers by channel

type GossipProvider

type GossipProvider interface {
	GetGossipService() gossipapi.GossipService
}

GossipProvider is a Gossip service provider

type IdentifierProvider

type IdentifierProvider interface {
	GetIdentifier() (string, error)
}

IdentifierProvider is the signing identity provider

type IdentityDeserializerProvider

type IdentityDeserializerProvider interface {
	GetIdentityDeserializer(channelID string) msp.IdentityDeserializer
}

IdentityDeserializerProvider returns the identity deserializer for the given channel

type IdentityProvider

type IdentityProvider interface {
	GetDefaultSigningIdentity() (msp.SigningIdentity, error)
}

IdentityProvider is the signing identity provider

type LedgerProvider

type LedgerProvider interface {
	GetLedger(cid string) ledger.PeerLedger
}

LedgerProvider retrieves ledgers by channel ID

type Providers

type Providers struct {
	BlockPublisherProvider api.BlockPublisherProvider
	StoreProvider          StoreProvider
	GossipProvider         GossipProvider
	CCProvider             CollectionConfigProvider
	IdentifierProvider     IdentifierProvider
}

Providers holds all of the dependencies required by the retriever provider

type StoreProvider

type StoreProvider interface {
	StoreForChannel(channelID string) storeapi.Store
}

StoreProvider provides stores by channel

Jump to

Keyboard shortcuts

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