Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomRing ¶ added in v4.37.0
type BloomRing struct { *ss_bloomring.BloomRing // contains filtered or unexported fields }
func NewBloomRing ¶ added in v4.37.0
func NewBloomRing() BloomRing
type GeneralizedReplayFilter ¶ added in v4.37.0
type ReplayFilter ¶
type ReplayFilter struct {
// contains filtered or unexported fields
}
ReplayFilter check for replay attacks.
func NewReplayFilter ¶
func NewReplayFilter(interval int64) *ReplayFilter
NewReplayFilter create a new filter with specifying the expiration time interval in seconds.
func (*ReplayFilter) Check ¶
func (filter *ReplayFilter) Check(sum []byte) bool
Check determine if there are duplicate records.
func (*ReplayFilter) Interval ¶
func (filter *ReplayFilter) Interval() int64
Interval in second for expiration time for duplicate records.
Click to show internal directories.
Click to hide internal directories.