suricata

package
v0.0.0-...-6e31670 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package suricata contains functionality to control and monitor Suricata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller controls Suricata via its Unix socket service.

func NewController

func NewController(sockAddr string) *Controller

NewController creates a new Controller.

func (*Controller) ReloadRules

func (c *Controller) ReloadRules() error

ReloadRules issues a command to Suricata to reload the rules engine with updated rules.

type Socket

type Socket interface {
	// Connect to socket service.
	Connect() error
	// Send command over socket connection.
	Send(*socket.Command) (*socket.Response, error)
	// Close socket connection.
	Close() error
}

Socket represents a Suricata unix socket connection.

Directories

Path Synopsis
Package socket contains functionality to send commands to Suricata via its Unix socket.
Package socket contains functionality to send commands to Suricata via its Unix socket.

Jump to

Keyboard shortcuts

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