Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IList ¶
type IList interface {
AddOrIncrease(uri string) IList
IsBanned(uri string) bool
Remove(uri string) IList
}
IList describes the user panel of a Blacklist
type IRecord ¶
type IRecord interface {
Increase() IRecord
GetCount() int
ResetCount() IRecord
SetBanTime(*time.Time) IRecord
GetBanTime() *time.Time
IsBanned() bool
}
IRecord describes the user panel of BlacklistRecord
type List ¶
type List struct {
// contains filtered or unexported fields
}
List implements IList
func (*List) AddOrIncrease ¶
AddOrIncrease stores the URI as a new record or increases the inner counter
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
Record is an element of the blacklist
func (*Record) GetBanTime ¶
GetBanTime returns bannedUntil property
Click to show internal directories.
Click to hide internal directories.