github.com/sykesm/fabric@v1.1.0-preview.0.20200129034918-2aa12b1a0181/core/handlers/decoration/plugin/decorator.go (about) 1 /* 2 Copyright IBM Corp, SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package main 8 9 import ( 10 "github.com/hyperledger/fabric-protos-go/peer" 11 "github.com/hyperledger/fabric/core/handlers/decoration" 12 ) 13 14 // NewDecorator creates a new decorator 15 func NewDecorator() decoration.Decorator { 16 return &decorator{} 17 } 18 19 type decorator struct { 20 } 21 22 // Decorate decorates a chaincode input by changing it 23 func (d *decorator) Decorate(proposal *peer.Proposal, input *peer.ChaincodeInput) *peer.ChaincodeInput { 24 return input 25 } 26 27 func main() { 28 }