{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.0.6","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package configupdate\n\nconfigupdate is an implementation of the broadcast.Proccessor interface It facilitates the preprocessing of CONFIG\\_UPDATE transactions which can generate either new CONFIG transactions or new channel creation ORDERER\\_TRANSACTION messages.\n\n## Types\n\n```go\ntype Processor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(systemChannelID string, supportManager SupportManager, signer crypto.LocalSigner) *Processor\n```\n\n```go\nfunc (p *Processor) Process(envConfigUpdate *cb.Envelope) (*cb.Envelope, error)\n```\nProcess takes in an envelope of type CONFIG\\_UPDATE and proceses it to transform it either into to a new channel creation request, or into a channel CONFIG transaction (or errors on failure)\n\n```go\ntype Support interface {\n\t// ProposeConfigUpdate applies a CONFIG_UPDATE to an existing config to produce a *cb.ConfigEnvelope\n\tProposeConfigUpdate(env *cb.Envelope) (*cb.ConfigEnvelope, error)\n}\n```\nSupport enumerates a subset of the full channel support function which is required for this package\n\n```go\ntype SupportManager interface {\n\t// GetChain gets the chain support for a given ChannelId\n\tGetChain(chainID string) (Support, bool)\n\n\t// NewChannelConfig returns a bare bones configuration ready for channel\n\t// creation request to be applied on top of it\n\tNewChannelConfig(envConfigUpdate *cb.Envelope) (configtxapi.Manager, error)\n}\n```\nSupportManager provides a way for the Handler to look up the Support for a chain\n\n","path":"github.com/eric-erki/https-hyperledger.org/orderer/configupdate","name":"configupdate","synopsis":"configupdate is an implementation of the broadcast.Proccessor interface It facilitates the preprocessing of CONFIG_UPDATE transactions which can generate either new CONFIG transactions or new channel creation ORDERER_TRANSACTION messages.","isRedistributable":true}
