basic

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Akismet Reviewer

The akismet is a spam filtering service that filters spam.

Config

  • akismet_key: Akismet API key

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reviewer

type Reviewer struct {
	Config *ReviewerConfig
}

func (*Reviewer) ConfigFields

func (r *Reviewer) ConfigFields() []plugin.ConfigField

func (*Reviewer) ConfigReceiver

func (r *Reviewer) ConfigReceiver(config []byte) error

func (*Reviewer) Info

func (r *Reviewer) Info() plugin.Info

func (*Reviewer) RequestAkismetToCheck

func (r *Reviewer) RequestAkismetToCheck(content *plugin.ReviewContent) (isSpam bool, err error)

func (*Reviewer) Review

func (r *Reviewer) Review(content *plugin.ReviewContent) (result *plugin.ReviewResult)

type ReviewerConfig

type ReviewerConfig struct {
	APIKey        string `json:"api_key"`
	SpamFiltering string `json:"span_filtering"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL