...

Package decoration

import "github.com/hyperledger/fabric/core/handlers/decoration"
Overview
Index
Subdirectories

Overview ▾

func Apply

func Apply(proposal *peer.Proposal, input *peer.ChaincodeInput,
    decorators ...Decorator) *peer.ChaincodeInput

Apply decorators in the order provided

type Decorator

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
}

Subdirectories

Name Synopsis
..
decorator
plugin