basic

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Review Basic

Review the user's first post, and only after review will the post be visible to others.

Config

Just need to open the Review question and answer switch. After that, the user's first post will be reviewed by the administrator.

Documentation

Index

Constants

View Source
const (
	OptionNone  = "none"
	OptionAll   = "all"
	OptionFirst = "first"
)

Variables

View Source
var Info embed.FS

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) Review

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

type ReviewerConfig

type ReviewerConfig struct {
	PostAllNeedReview      bool   `json:"review_post_all"`
	PostNeedReview         bool   `json:"review_post"`
	PostReviewOption       string `json:"review_post_option"`
	PostReviewKeywords     string `json:"review_post_keywords"`
	PostDisallowedKeywords string `json:"disallowed_keywords"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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