rspamd

package
v0.0.0-...-48d6722 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

View Source
const RspamdTimeout = 20 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Rspamd

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

func NewRspamd

func NewRspamd(host, password string) (*Rspamd, error)

func (*Rspamd) Check

func (rs *Rspamd) Check(rawMail []byte) *domain.SpamResult

func (*Rspamd) Learn

func (rs *Rspamd) Learn(learnType domain.LearnType, rawMail []byte) error

func (*Rspamd) Ping

func (rs *Rspamd) Ping() error

Jump to

Keyboard shortcuts

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