Documentation
¶
Overview ¶
Package engine defines the interface between meles and malware scan engines such as clamd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooLarge = errors.New("stream too large for the engine")
ErrTooLarge is returned (wrapped) by Session.Scan when the engine refused a stream because of its size, e.g. above clamd's StreamMaxLength. The file counts as skipped, not as an error; the session must not be reused.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
// Open starts a session. Each concurrent worker uses its own session.
Open(ctx context.Context) (Session, error)
// Version reports the engine and signature database version. It is part
// of the cache key, so results are rescanned after a signature update.
Version(ctx context.Context) (Version, error)
}
Engine opens scan sessions.
Click to show internal directories.
Click to hide internal directories.