Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResponse ¶
type CheckResponse struct { Message string Score float64 Spam bool Threshold float64 Took float64 MessageId string }
func Check ¶
func Check(reader io.Reader) (*CheckResponse, error)
//////////////////////////////////////////////////////////////////////////////
func (CheckResponse) FmtScore ¶
func (p CheckResponse) FmtScore(pattern string) string
//////////////////////////////////////////////////////////////////////////////
func (CheckResponse) Report ¶
func (p CheckResponse) Report(uid uint32)
//////////////////////////////////////////////////////////////////////////////
type LearnResponse ¶
type LearnResponse struct { Message string Success bool Skiped bool Took float64 ErrorCode int ErrorMessageID string ErrorMessage string }
func Learn ¶
func Learn(fnString string, reader io.Reader) (*LearnResponse, error)
//////////////////////////////////////////////////////////////////////////////
func LearnHam ¶
func LearnHam(reader io.Reader) (*LearnResponse, error)
//////////////////////////////////////////////////////////////////////////////
func LearnSpam ¶
func LearnSpam(reader io.Reader) (*LearnResponse, error)
//////////////////////////////////////////////////////////////////////////////
func (LearnResponse) Report ¶
func (p LearnResponse) Report(uid uint32)
//////////////////////////////////////////////////////////////////////////////
Click to show internal directories.
Click to hide internal directories.