func Apply(proposal *peer.Proposal, input *peer.ChaincodeInput, decorators ...Decorator) *peer.ChaincodeInput
Apply decorators in the order provided
Decorator decorates a chaincode input
type Decorator interface { // Decorate decorates a chaincode input by changing it Decorate(proposal *peer.Proposal, input *peer.ChaincodeInput) *peer.ChaincodeInput }