exampleauthfilter

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL