Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Antispam ¶
type Antispam struct {
// contains filtered or unexported fields
}
Antispam is a antispam instance.
func (*Antispam) NativeRate ¶
NativeRate limit user + path second level
type Config ¶
type Config struct { On bool // switch on/off Second int // every N second allow N requests. N int // one unit allow N requests. Hour int // every N hour allow M requests. M int // one winodw allow M requests. Redis *redis.Config }
Config antispam config. On bool // switch on/off Second int // every N second allow N requests. N int // one unit allow N requests. Hour int // every N hour allow M requests. M int // one winodw allow M requests.
Click to show internal directories.
Click to hide internal directories.