nospam

package module
v0.0.0-...-cc3e850 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: MIT Imports: 2 Imported by: 0

README

go-nospam

Spam checker for user generated content like comments.

Build Status Go Report Card Godoc

Experimental

This package is in an early stage of development.

Installation
go get -u -v github.com/tsdtsdtsd/go-nospam
Usage example

Take a look at the /example folder, it contains a simple usage example.

Development setup

You will need the following things installed and working on your system to start development on go-nospam:

Release History
  • no release yet
Meta

Orkan Alat – @tsdtsdtsdgithub.com/tsdtsdtsd/

Distributed under the MIT license. See LICENSE for more information.

Contributing
  1. Fork it (https://github.com/tsdtsdtsd/nyx/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. You're more than welcome to add yourself to the Contributors section of this file (README.md)
  4. Commit your changes (git commit -am 'Add some fooBar')
  5. Push to the branch (git push origin feature/fooBar)
  6. Create a new Pull Request
Contributors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker checks for spam

func NewChecker

func NewChecker() *Checker

NewChecker returns a new Checker

func NewCheckerWithConfig

func NewCheckerWithConfig(opt *Options) *Checker

NewCheckerWithConfig returns a new Checker with given options set

func (*Checker) Evaluate

func (c *Checker) Evaluate(ud *user.Data) (float32, error)

Evaluate runs all rules

func (*Checker) SetOptions

func (c *Checker) SetOptions(opt *Options)

SetOptions overwrites the Checkers options with the given ones. It DOES NOT merge values.

type Options

type Options struct {
}

Directories

Path Synopsis
internal
rule
Package rule contains spam checker rules
Package rule contains spam checker rules

Jump to

Keyboard shortcuts

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