Documentation ¶
Index ¶
Constants ¶
View Source
const ( CN_IDX_PROC = 1 CN_VAL_PROC = 1 )
View Source
const ( PROC_EVENT_NONE ProcEventType = 0x00000000 PROC_EVENT_FORK = 0x00000001 PROC_EVENT_EXEC = 0x00000002 PROC_EVENT_UID = 0x00000004 PROC_EVENT_GID = 0x00000040 PROC_EVENT_SID = 0x00000080 PROC_EVENT_PTRACE = 0x00000100 PROC_EVENT_COMM = 0x00000200 PROC_EVENT_COREDUMP = 0x40000000 PROC_EVENT_EXIT = 0x80000000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcEvent ¶
type ProcEvent struct {
// contains filtered or unexported fields
}
func (*ProcEvent) GetHeader ¶
func (p *ProcEvent) GetHeader() ProcEventHeader
func (*ProcEvent) GetType ¶
func (p *ProcEvent) GetType() ProcEventType
type ProcEventHeader ¶
type ProcEventHeader struct { Type ProcEventType CPU uint32 // Number of nano seconds since system boot Timestamps uint64 }
type ProcEventType ¶
type ProcEventType uint32
type WatchEvent ¶
type Watcher ¶
type Watcher interface { Start() error Stop() Events() <-chan WatchEvent }
func NewProcessWatcher ¶
func NewProcessWatcher() Watcher
Click to show internal directories.
Click to hide internal directories.