Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ContScan(ctx context.Context, p string) (r []*Response, err error)
- func (c *Client) Fildes(ctx context.Context, p string) (r []*Response, err error)
- func (c *Client) InStream(ctx context.Context, p string) (r []*Response, err error)
- func (c *Client) MultiScan(ctx context.Context, p string) (r []*Response, err error)
- func (c *Client) Ping(ctx context.Context) (b bool, err error)
- func (c *Client) Reload(ctx context.Context) (b bool, err error)
- func (c *Client) Scan(ctx context.Context, p string) (r []*Response, err error)
- func (c *Client) ScanReader(ctx context.Context, i io.Reader) (r []*Response, err error)
- func (c *Client) SetConnRetries(s int)
- func (c *Client) SetConnSleep(s time.Duration)
- func (c *Client) SetConnTimeout(t time.Duration)
- func (c *Client) Shutdown(ctx context.Context) (err error)
- func (c *Client) Stats(ctx context.Context) (s string, err error)
- func (c *Client) Version(ctx context.Context) (engineVersion, dbVersion string, err error)
- func (c *Client) VersionCmds(ctx context.Context) (r []string, err error)
- type Response
Constants ¶
View Source
const (
// ChunkSize the size for chunking INSTREAM files
ChunkSize = 1024
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client represents a Clamd client.
func (*Client) ScanReader ¶
ScanReader scans an io.reader
func (*Client) SetConnRetries ¶
SetConnRetries sets the number of times connection is retried
func (*Client) SetConnSleep ¶
SetConnSleep sets the connection retry sleep duration in seconds
func (*Client) SetConnTimeout ¶
SetConnTimeout sets the connection timeout
Click to show internal directories.
Click to hide internal directories.