Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgsDownload ¶
type ArgsDownload struct {
//时间段
TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}
下载指定时间段的所有日志 本地会安排构建请求
type ArgsGetByID ¶
type ArgsGetByID struct {
//ID
ID int64 `db:"id" json:"id" check:"id"`
}
获取指定的数据ID
type ArgsGetList ¶
type ArgsGetList struct {
//分页
Pages CoreSQLPages.ArgsDataList `json:"pages"`
//上报主机名称
Mark string `db:"mark" json:"mark"`
//上报主机IP
IP string `db:"ip" json:"ip"`
//日志类型
LogType string `db:"log_type" json:"logType"`
//时间类型
TimeType string `db:"time_type" json:"timeType"`
//搜索
Search string `json:"search" check:"search" empty:"true"`
}
获取列表
type DataWaitDownload ¶
type DataWaitDownload struct {
//时间戳
FileSHA string
//时间间隔
TimeBetween CoreSQLTime.FieldsCoreTime
}
type FieldsLog ¶
type FieldsLog struct {
//ID
ID int64 `db:"id" json:"id"`
//创建时间
CreateAt time.Time `db:"create_at" json:"createAt"`
//上报主机名称
Mark string `db:"mark" json:"mark"`
//上报主机IP
IP string `db:"ip" json:"ip"`
//日志类型
LogType string `db:"log_type" json:"logType"`
//时间类型
// YYYY-MM-DD_HH | YYYY-MM-DD
TimeType string `db:"time_type" json:"timeType"`
//日志尺寸
Size int `db:"size" json:"size"`
//日志内容
Contents string `db:"contents" json:"contents"`
}
func GetByID ¶
func GetByID(args *ArgsGetByID) (data FieldsLog, err error)
Click to show internal directories.
Click to hide internal directories.