protocol

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command int

A Command represents a Clamd Command

const (
	// Ping is the PING command
	Ping Command = iota + 1
	// Version is the VERSION command
	Version
	// Reload is the RELOAD command
	Reload
	// Shutdown is the SHUTDOWN command
	Shutdown
	// Scan is the SCAN command
	Scan
	// ContScan is the CONTSCAN command
	ContScan
	// MultiScan is the MULTISCAN command
	MultiScan
	// Instream is the INSTREAM command
	Instream
	// Fildes is the FILDES command
	Fildes
	// Stats is the STATS command
	Stats
	// IDSession is the IDSESSION command
	IDSession
	// EndSession is the END command
	EndSession
	// VersionCmds is the VERSIONCOMMANDS command
	VersionCmds
)

func (Command) RequiresParam

func (c Command) RequiresParam() (b bool)

RequiresParam returns a bool to indicate if command takes a file or directory as a param

func (Command) String

func (c Command) String() (s string)

Jump to

Keyboard shortcuts

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