Documentation ¶
Index ¶
- Variables
- func Akismet(params *AkismetParams, key string) (isPass bool, err error)
- func Aliyun(p AliyunParams) (isPass bool, err error)
- func SyncSpamCheck(comment *model.Comment, echoCtx echo.Context)
- func Tencent(p TencentParams) (isPass bool, err error)
- type AkismetParams
- type AliyunParams
- type TencentParams
Constants ¶
This section is empty.
Variables ¶
View Source
var AntiSpamReplaceKeywords *[]string
Functions ¶
func Aliyun ¶
func Aliyun(p AliyunParams) (isPass bool, err error)
阿里云反垃圾 @link https://help.aliyun.com/document_detail/70409.html @link https://help.aliyun.com/document_detail/107743.html 接入地址
func SyncSpamCheck ¶
func Tencent ¶
func Tencent(p TencentParams) (isPass bool, err error)
腾讯云文本内容安全 TMS @link https://cloud.tencent.com/document/product/1124/51860 @link https://console.cloud.tencent.com/cms/text/overview
Types ¶
type AkismetParams ¶
type AkismetParams struct { Blog string `name:"blog"` // required UserIP string `name:"user_ip"` // required UserAgent string `name:"user_agent"` // required CommentType string `name:"comment_type"` CommentAuthor string `name:"comment_author"` CommentAuthorEmail string `name:"comment_author_email"` CommentAuthorURL string `name:"comment_author_url"` CommentContent string `name:"comment_content"` UserRole string `name:"user_role"` Referrer string `name:"referrer"` Permalink string `name:"permalink"` BlogLang string `name:"blog_lang"` BlogCharset string `name:"blog_charset"` }
type AliyunParams ¶
Click to show internal directories.
Click to hide internal directories.