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
Click to show internal directories.
Click to hide internal directories.