Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ConfigNS is the namespace (chaincode name) under which configuration data is stored.
ConfigNS = "configscc"
)
Variables ¶
View Source
var ErrConfigNotFound = errors.New("config not found")
ErrConfigNotFound indicates that the config for the given key was not found
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
ConfigService manages configuration data for a given channel
func New ¶
func New(channelID string, retrieverProvider state.RetrieverProvider, publisher blockPublisher) *ConfigService
New returns a new config service
func (*ConfigService) AddUpdateHandler ¶
func (s *ConfigService) AddUpdateHandler(handler config.UpdateHandler)
AddUpdateHandler adds a handler that is notified of config updates/deletes
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages a set of configuration services - one per channel
func NewSvcMgr ¶ added in v0.1.1
func NewSvcMgr(stateDBProvider stateDBProvider, blockPublisherProvider api.BlockPublisherProvider) *Manager
NewSvcMgr creates a new config service manager
Click to show internal directories.
Click to hide internal directories.