Documentation ¶
Overview ¶
Package sssp implements the SSSP protocol SSSP - Golang SSSP protocol implementation
Index ¶
- Variables
- type Client
- func (c *Client) Close() (err error)
- func (c *Client) Dial(ctx context.Context) (err error)
- func (c *Client) ScanDir(p string, recurse bool) (r []*Response, err error)
- func (c *Client) ScanFile(p string) (r *Response, err error)
- func (c *Client) ScanReader(i io.Reader) (r *Response, err error)
- func (c *Client) ScanStream(p string) (r *Response, err error)
- func (c *Client) SetCmdTimeout(t time.Duration)
- func (c *Client) SetConnSleep(s time.Duration)
- type Command
- type Response
Constants ¶
This section is empty.
Variables ¶
var ( // ZeroTime holds the zero value of time ZeroTime time.Time )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client represents an SSSP client.
func NewClient ¶
func NewClient(ctx context.Context, network, address string, connTimeOut, ioTimeOut time.Duration, connRetries int) (c *Client, err error)
NewClient creates and returns a new instance of Client
func (*Client) Close ¶
Close closes the connection to the server gracefully and frees up resources used by the connection
func (*Client) Dial ¶
Dial setup clients network connection This is called automatically when you call NewClient It is provided to allow for reconnection if the underlying connection is dropped due to inactivity.
func (*Client) ScanReader ¶
ScanReader submits an io reader via a stream for scanning
func (*Client) ScanStream ¶
ScanStream submits a single file via a stream for scanning
func (*Client) SetCmdTimeout ¶
SetCmdTimeout sets the cmd timeout
func (*Client) SetConnSleep ¶
SetConnSleep sets the connection retry sleep duration in seconds
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
ssspscan
Package main SSSP - Golang cmdline SSSP client Package main Sophie - Golang cmdline SSSP client
|
Package main SSSP - Golang cmdline SSSP client Package main Sophie - Golang cmdline SSSP client |
Package main SSSP - Golang cmdline SSSP client
|
Package main SSSP - Golang cmdline SSSP client |