Documentation
¶
Index ¶
- Constants
- Variables
- type Protos
- type Socket
- type SocketsMonitor
- func (pm *SocketsMonitor) Errors() <-chan error
- func (pm *SocketsMonitor) Pause() error
- func (pm *SocketsMonitor) Results() <-chan interface{}
- func (pm *SocketsMonitor) Resume() error
- func (pm *SocketsMonitor) Start(ctx context.Context, cancel context.CancelFunc) error
- func (pm *SocketsMonitor) Stop() error
- type SocketsTable
Constants ¶
View Source
const ( // AnySocket constant indicates that we should return all sockets found. // If the user selected a socket type, family or protocol, the value will be > 0 AnySocket = 0 )
Variables ¶
View Source
var Name = "sockets-monitor"
Name of this task
Functions ¶
This section is empty.
Types ¶
type Protos ¶
Protos holds valid combinations of protocols, families and socket types that can be created.
type Socket ¶
Socket represents every socket dumped from the kernel for the given filter. Internal to this package, and sent to the GUI as JSON.
type SocketsMonitor ¶
type SocketsMonitor struct { tasks.TaskBase Ticker *time.Ticker Config *monConfig // stop the task if the daemon is disconnected from the GUI (server) StopOnDisconnect bool // contains filtered or unexported fields }
SocketsMonitor monitors a process ID.
func New ¶
func New(config interface{}, stopOnDisconnect bool) (*SocketsMonitor, error)
New returns a new SocketsMonitor
func (*SocketsMonitor) Pause ¶
func (pm *SocketsMonitor) Pause() error
Pause stops temporarily the task. For example it might be paused when the connection with the GUI (server) is closed.
func (*SocketsMonitor) Start ¶
func (pm *SocketsMonitor) Start(ctx context.Context, cancel context.CancelFunc) error
Start ...
Click to show internal directories.
Click to hide internal directories.