Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFilter ¶
type AuthFilter struct {
// contains filtered or unexported fields
}
AuthFilter is a sample Auth filter used in the BDD test. It demonstrates the handler registry and dependency injection for Auth filters.
func New ¶
func New(gossip gossipProvider, txnProvider txnServiceProvider, dcasClientProvider dcasClientProvider, qep qeChannelProvider) *AuthFilter
New returns a new example auth AuthFilter. The Gossip provider is supplied via dependency injection.
func (*AuthFilter) Init ¶
func (f *AuthFilter) Init(next pb.EndorserServer)
Init initializes the Auth filter
func (*AuthFilter) Name ¶
func (f *AuthFilter) Name() string
Name returns the unique name of the Auth filter
func (*AuthFilter) ProcessProposal ¶
func (f *AuthFilter) ProcessProposal(ctx context.Context, signedProp *pb.SignedProposal) (*pb.ProposalResponse, error)
ProcessProposal is invoked during an endorsement (before the chaincode). This implementation looks for a specific chaincode name and function and, if satisfied, returns an error response with a message that contains the channel peer endpoints.
Click to show internal directories.
Click to hide internal directories.