Documentation ¶
Index ¶
- func Bans() gin.HandlerFunc
- func CheckBannedIps(ip string) (check bool, err error)
- func CheckScamalytics(ip string) (err error)
- func CheckStopForumSpam(ip string) (err error)
- func Goodnight() 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 CheckBannedIps ¶
CheckBannedIps will check the database for the ip
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 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.