Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidLimit means this type of recursive selector limit is not supported by default // -- to prevent DDOS attacks ErrInvalidLimit = errors.New("unsupported recursive selector limit") )
Functions ¶
func SelectorValidator ¶
func SelectorValidator(maxAcceptedDepth int64) graphsync.OnIncomingRequestHook
SelectorValidator returns an OnRequestReceivedHook that only validates requests if their selector only has no recursions that are greater than maxAcceptedDepth
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.