-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-5647] Extract common comp from config/channel
In the last CR in these series, the entirety of the config structures were moved to fabric/common/channel/config. This includes code like the Proposer and StandardValues which is applicable outside of the context of the channel config. This CR moves this subset back to the fabric/common/config directory. Change-Id: I5ff5378a1362ee5da28deec2d46f5dd07ba889e0 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
- Loading branch information
Jason Yellick
committed
Aug 11, 2017
1 parent
8dc7883
commit 58ddd21
Showing
23 changed files
with
132 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Copyright IBM Corp. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package config | ||
|
||
type ValueProposer interface { | ||
// BeginValueProposals called when a config proposal is begun | ||
BeginValueProposals(tx interface{}, groups []string) (ValueDeserializer, []ValueProposer, error) | ||
|
||
// RollbackProposals called when a config proposal is abandoned | ||
RollbackProposals(tx interface{}) | ||
|
||
// PreCommit is invoked before committing the config to catch | ||
// any errors which cannot be caught on a per proposal basis | ||
// TODO, rename other methods to remove Value/Proposal references | ||
PreCommit(tx interface{}) error | ||
|
||
// CommitProposals called when a config proposal is committed | ||
CommitProposals(tx interface{}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.