action

package
v0.4.3-0...-fd7f253 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputerInfoSave

func ComputerInfoSave(info ComputerInfo)

ComputerInfoSave 保存client信息

func ResultSave

func ResultSave(datainfo models.DataInfo) error

ResultSave 保存结果到info表

func ResultStat

func ResultStat(datainfo models.DataInfo) error

ResultStat 对接收数据进行统计

func TaskThread

func TaskThread()

TaskThread 开启任务线程

Types

type ClientConfig

type ClientConfig struct {
	Cycle       int      `bson:"cycle"` // 信息传输频率,单位:分钟
	UDP         bool     `bson:"udp"`   // 是否记录UDP请求
	LAN         bool     `bson:"lan"`   // 是否本地网络请求
	Mode        string   `bson:"mode"`  // 模式,考虑中
	Filter      filter   // 直接过滤不回传的数据
	MonitorPath []string `bson:"monitorPath"` // 监控目录列表
	Lasttime    string   // 最后一条登录日志时间
}

ClientConfig 客户端配置信息结构

func GetAgentConfig

func GetAgentConfig(ip string) ClientConfig

GetAgentConfig 返回客户端的配置信息

type ComputerInfo

type ComputerInfo struct {
	IP       string
	System   string
	Hostname string
	Type     string
	Path     []string

	Uptime time.Time
}

Jump to

Keyboard shortcuts

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