fabric: github.com/hyperledger/fabric/discovery/support/config Index | Files

package config

import "github.com/hyperledger/fabric/discovery/support/config"

Index

Package Files

support.go

func ValidateConfigEnvelope Uses

func ValidateConfigEnvelope(ce *common.ConfigEnvelope) error

type CurrentConfigBlockGetter Uses

type CurrentConfigBlockGetter interface {
    // GetCurrConfigBlock returns the current config block for the given channel
    GetCurrConfigBlock(channel string) *common.Block
}

CurrentConfigBlockGetter enables to fetch the last config block

type CurrentConfigBlockGetterFunc Uses

type CurrentConfigBlockGetterFunc func(channel string) *common.Block

CurrentConfigBlockGetterFunc enables to fetch the last config block

func (CurrentConfigBlockGetterFunc) GetCurrConfigBlock Uses

func (f CurrentConfigBlockGetterFunc) GetCurrConfigBlock(channel string) *common.Block

CurrentConfigBlockGetterFunc enables to fetch the last config block

type DiscoverySupport Uses

type DiscoverySupport struct {
    CurrentConfigBlockGetter
}

DiscoverySupport implements support that is used for service discovery that is related to configuration

func NewDiscoverySupport Uses

func NewDiscoverySupport(getLastConfigBlock CurrentConfigBlockGetter) *DiscoverySupport

NewDiscoverySupport creates a new DiscoverySupport

func (*DiscoverySupport) Config Uses

func (s *DiscoverySupport) Config(channel string) (*discovery.ConfigResult, error)

Config returns the channel's configuration

Package config imports 11 packages (graph) and is imported by 2 packages. Updated 2019-08-22. Refresh now. Tools for package owners.