engine

package
v0.0.0-...-1c7b4bc Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckCtx

type CheckCtx struct {
	CtxBase
	Expunge bool
	Force   bool
	SpamBox string
	HamBox  string
	InBox   string
}

//////////////////////////////////////////////////////////////////////////////

func (CheckCtx) Print

func (ctx CheckCtx) Print()

//////////////////////////////////////////////////////////////////////////////

type CtxBase

type CtxBase struct {
	Username string
	Password string
	Host     string
	Port     int
}

//////////////////////////////////////////////////////////////////////////////

type Engine

type Engine struct {
}

//////////////////////////////////////////////////////////////////////////////

func NewEngine

func NewEngine() (*Engine, error)

//////////////////////////////////////////////////////////////////////////////

func (*Engine) Check

func (e *Engine) Check(ctx CheckCtx) error

//////////////////////////////////////////////////////////////////////////////

func (*Engine) Execute

func (e *Engine) Execute(fn EngineFunc) error

//////////////////////////////////////////////////////////////////////////////

func (*Engine) Learn

func (e *Engine) Learn(ctx LearnCtx) error

//////////////////////////////////////////////////////////////////////////////

type EngineFunc

type EngineFunc func(engine *Engine) error

type LearnCtx

type LearnCtx struct {
	CtxBase
	LearnBox string
	FnString string
	MarkSeen bool
}

//////////////////////////////////////////////////////////////////////////////

func (LearnCtx) Print

func (ctx LearnCtx) Print()

//////////////////////////////////////////////////////////////////////////////

Jump to

Keyboard shortcuts

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