Documentation ¶
Overview ¶
Package socket contains functionality to send commands to Suricata via its Unix socket.
Proper usage of the socket:
- Connect()
- Send()
- Close()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Name CommandName `json:"command,"` Args map[string]string `json:"arguments,omitempty"` }
Command represents a Suricata Unix socket command.
Protocol: https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Unix_Socket#Protocol
type CommandName ¶
type CommandName string
CommandName represents a Suricata Unix socket command name.
https://suricata.readthedocs.io/en/suricata-4.0.5/unix-socket.html
const (
ReloadRules CommandName = "reload-rules"
)
Suricata socket commands.
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
Socket represents a Suricata Unix socket server connection.
Click to show internal directories.
Click to hide internal directories.