spamcheck

package
v0.0.0-...-4003eb9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

wrapper for postmark spamcheck api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Success bool    `json:"success"`
	Score   string  `json:"score"`
	Rules   []*Rule `json:"rules"`
	Report  string  `json:"report"`
}

this type contains the response items of the spam check

func Check

func Check(email string, getLong ...bool) *Response

check if email is spam

  • optional getLong param - if true get report details

type Rule

type Rule struct {
	Score       string `json:"score"`
	Description string `json:"description"`
}

this type contains a checked rule's score and description

Jump to

Keyboard shortcuts

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