func (c *Controller) ReloadRules() error {
	if err := c.sock.Connect(); err != nil {
		return err
	}
	defer c.sock.Close()
	_, err := c.sock.Send(&socket.Command{
		Name: socket.ReloadRules,
	})
	if err != nil {
		return err
	}
	return nil
}
ReloadRules issues a command to Suricata to reload the rules engine with updated rules.
package suricata
import (
	"github.com/google/emitto/source/sensor/suricata/socket"
)
type Socket interface {
	Connect() error
	Send(*socket.Command) (*socket.Response, error)
	Close() error
}
type Controller struct {
	sock Socket
}
func NewController(sockAddr string) *Controller {
	return &Controller{socket.New(sockAddr)}
}