spamcheck

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaData added in v1.9.0

type MetaData struct {
	Images int `json:"images"` // number of images in the message
	Links  int `json:"links"`  // number of links in the message
}

MetaData is a meta-info about the message, provided by the client.

type Request

type Request struct {
	Msg      string   `json:"msg"`       // message to check
	UserID   string   `json:"user_id"`   // user id
	UserName string   `json:"user_name"` // user name
	Meta     MetaData `json:"meta"`      // meta-info, provided by the client
}

Request is a request to check a message for spam.

func (*Request) String added in v1.9.0

func (r *Request) String() string

type Response

type Response struct {
	Name    string `json:"name"`    // name of the check
	Spam    bool   `json:"spam"`    // true if spam
	Details string `json:"details"` // details of the check
}

Response is a result of spam check.

func (*Response) String

func (r *Response) String() string

Jump to

Keyboard shortcuts

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