auth

package
v0.0.0-...-903d01c Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainFilters

func ChainFilters(endorser peer.EndorserServer, filters ...Filter) peer.EndorserServer

ChainFilters chains the given auth filters in the order provided. the last filter always forwards to the endorser 所有权限验证的过滤器,背书过滤器加在最后,其他的过滤器要保证各种权限、账本、状态等的正确。 该过滤器链主要保证交易执行前的“合规合法” ChainFilters是一个队列结果,先进先出

Types

type Filter

type Filter interface {
	peer.EndorserServer
	// Init initializes the Filter with the next EndorserServer
	Init(next peer.EndorserServer)
}

Filter defines an authentication filter that intercepts ProcessProposal methods

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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