{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Functions\n\n```go\nfunc ValidateConfigEnvelope(ce *common.ConfigEnvelope) error\n```\n\n## Types\n\n```go\ntype CurrentConfigBlockGetter interface {\n\t// GetCurrConfigBlock returns the current config block for the given channel\n\tGetCurrConfigBlock(channel string) *common.Block\n}\n```\nCurrentConfigBlockGetter enables to fetch the last config block\n\n```go\ntype CurrentConfigBlockGetterFunc func(channel string) *common.Block\n```\nCurrentConfigBlockGetterFunc enables to fetch the last config block\n\n```go\nfunc (f CurrentConfigBlockGetterFunc) GetCurrConfigBlock(channel string) *common.Block\n```\nCurrentConfigBlockGetterFunc enables to fetch the last config block\n\n```go\ntype DiscoverySupport struct {\n\tCurrentConfigBlockGetter\n}\n```\nDiscoverySupport implements support that is used for service discovery that is related to configuration\n\n```go\nfunc NewDiscoverySupport(getLastConfigBlock CurrentConfigBlockGetter) *DiscoverySupport\n```\nNewDiscoverySupport creates a new DiscoverySupport\n\n```go\nfunc (s *DiscoverySupport) Config(channel string) (*discovery.ConfigResult, error)\n```\nConfig returns the channel's configuration\n\n","path":"github.com/eric-erki/https-hyperledger.org/discovery/support/config","name":"config","synopsis":"","isRedistributable":true}
