Documentation
¶
Index ¶
- func Bans() gin.HandlerFunc
- func CheckBannedIP(ip string) (isBanned bool, err error)
- func CheckScamalytics(ip string) (err error)
- func CheckStopForumSpam(ip string) (err error)
- func Goodnight() gin.HandlerFunc
- func RequestLogger() gin.HandlerFunc
- func Scamalytics() gin.HandlerFunc
- func SpamFilter() gin.HandlerFunc
- func StopSpam() gin.HandlerFunc
- type ScamalyticsResponse
- type StopForumSpam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBannedIP ¶ added in v1.8.0
CheckBannedIP will check if the IP is in the banned list Uses a cache to reduce database load
func CheckScamalytics ¶ added in v1.5.0
CheckScamalytics will query blacklist api for IP
func CheckStopForumSpam ¶
CheckStopForumSpam will query blacklist api for IP
func Goodnight ¶ added in v1.7.10
func Goodnight() gin.HandlerFunc
Goodnight will disable posting during a time range
func RequestLogger ¶ added in v1.8.6
func RequestLogger() gin.HandlerFunc
RequestLogger logs user agent for successful POST requests
func Scamalytics ¶ added in v1.5.0
func Scamalytics() gin.HandlerFunc
Scamalytics check ip with scamalytics
func SpamFilter ¶ added in v1.7.1
func SpamFilter() gin.HandlerFunc
SpamFilter will check for banned words in the post
Types ¶
type ScamalyticsResponse ¶ added in v1.5.0
type ScamalyticsResponse struct {
Status string `json:"status"`
Mode string `json:"mode"`
IP string `json:"ip"`
Score int `json:"score"`
Risk string `json:"risk"`
URL string `json:"url"`
Credits struct {
Used int `json:"used"`
Remaining int `json:"remaining"`
LastSyncTimestampUtc string `json:"last_sync_timestamp_utc"`
SecondsElapsedSinceLastSync int `json:"seconds_elapsed_since_last_sync"`
Note string `json:"note"`
} `json:"credits"`
Exec string `json:"exec"`
}
Click to show internal directories.
Click to hide internal directories.