Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckThenAdd ¶
CheckThenAdd will check first and if the key is not in the filter bucket, then it will add it and return false, if the key is already in the bucket, it will just return true
Types ¶
type Filter ¶
type Filter interface { Exists(bucket string, key []byte) bool Add(bucket string, key []byte) error Delete(bucket string, key []byte) error // CheckThenAdd will check if the key was exist in the bucket or not, // will return the previous status, and also add the key to the bucket if not exists CheckThenAdd(bucket string, key []byte) (bool, error) Open() error Close() error }
Filter is used to check if the object is in the filter or not
Click to show internal directories.
Click to hide internal directories.