Versions in this module Expand all Collapse all v1 v1.0.0 May 27, 2023 Changes in this version + var ErrCommandCall = errors.New("error while calling clamd") + var ErrCommandRead = errors.New("error while reading response from clamd") + var ErrDial = errors.New("error while connecting to clamd") + var ErrEICARFound = errors.New("Win.Test.EICAR_HDB-1 FOUND") + var ErrEmptySrc = errors.New("scan source is empty") + var ErrInvalidResponse = errors.New("invalid response from clamd") + var ErrNoSuchFileOrDir = errors.New("clamd can't find file or directory") + var ErrPermissionDenied = errors.New("clamd can't open file or dir, permission denied") + var ErrSreamLimitExceeded = errors.New("clamd's INSTREAM size limit exceeded") + var ErrUnknown = errors.New("unknown error") + type Clamd struct + func NewClamd(opts ...Option) *Clamd + func (c *Clamd) Ping(ctx context.Context) (bool, error) + func (c *Clamd) Reload(ctx context.Context) (bool, error) + func (c *Clamd) Scan(ctx context.Context, src string) (bool, error) + func (c *Clamd) ScanAll(ctx context.Context, src string) (bool, error) + func (c *Clamd) ScanStream(ctx context.Context, r io.Reader) (bool, error) + func (c *Clamd) Shutdown(ctx context.Context) (bool, error) + func (c *Clamd) Stats(ctx context.Context) (*Stats, error) + func (c *Clamd) Version(ctx context.Context) (string, error) + type MemStat struct + Free float32 + Heap float32 + Mmap float32 + Pools int + PoolsTotal float32 + PoolsUsed float32 + Releasable float32 + Used float32 + type Option func(*Clamd) + func WithDefaultTCP() Option + func WithTCP(host string, port int) Option + func WithTimeout(timeout time.Duration) Option + func WithUnix(socket string) Option + type Queue struct + Items int + Stats float32 + type Stats struct + Memstats MemStat + Pools int + Queue Queue + State string + Threads Thread + type Thread struct + Idle int + IdleTimeout int + Live int + Max int