database

package
v0.0.0-...-9caa69f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCSLogs

func DeleteCSLogs() int

func DeleteESLogs

func DeleteESLogs() int

func DeleteTcpLogs

func DeleteTcpLogs() int

func DeleteTlLogs

func DeleteTlLogs() int

func GetBioSnoopLogs

func GetBioSnoopLogs() map[int64]*BioSnoopLog

func GetCacheStatLogs

func GetCacheStatLogs() map[int64]*CacheStatLog

func GetExecSnoopLogs

func GetExecSnoopLogs() map[int64]*ExecSnoopLog

func GetLogs

func GetLogs() map[int64]*Log

func GetTcpLifeLogs

func GetTcpLifeLogs() map[int64]*TcpLifeLog

func Init

func Init()

func UpdateBsLogs

func UpdateBsLogs(log BioSnoopLog) error

update biosnoop table

func UpdateCsLogs

func UpdateCsLogs(log CacheStatLog) error

update cachestat table

func UpdateEsLogs

func UpdateEsLogs(log ExecSnoopLog) error

update execsnoop table

func UpdateLogs

func UpdateLogs(log TcpLog) error

func UpdateTcpLifeLogs

func UpdateTcpLifeLogs(log TcpLifeLog) error

Types

type BioSnoopLog

type BioSnoopLog struct {
	TimeStamp int64
	ProbeName string
	Sys_Time  string
	T         string
	Pname     string
	Pid       string
	Disk      string
	Rw        string
	Sector    string
	Bytes     string
	Lat       string
}

type CacheStatLog

type CacheStatLog struct {
	TimeStamp int64
	ProbeName string
	Sys_Time  string
	Pid       string
	Uid       string
	Cmd       string
	Hits      string
	Miss      string
	Dirties   string
	Read_hit  string
	Write_hit string
}

type ExecSnoopLog

type ExecSnoopLog struct {
	TimeStamp int64
	ProbeName string
	Sys_Time  string
	T         string
	Pname     string
	Pid       string
	Ppid      string
	Ret       string
	Args      string
}

type Log

type Log struct {
	Timestamp int64
	ProbeName string
	Sys_Time  string
	T         string
	Pid       string
	Pname     string
	Ip        string
	Saddr     string
	Daddr     string
	Dport     string
	Sport     string
}

type TcpLifeLog

type TcpLifeLog struct {
	TimeStamp int64
	ProbeName string
	Sys_Time  string
	Pid       string
	Pname     string
	Laddr     string
	Lport     string
	Raddr     string
	Rport     string
	Tx_kb     string
	Rx_kb     string
	Ms        string
}

type TcpLog

type TcpLog struct {
	ProbeName string
	Sys_Time  string
	T         string
	Pid       string
	Pname     string
	Ip        string
	Saddr     string
	Daddr     string
	Dport     string
	Sport     string
}

Jump to

Keyboard shortcuts

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