BaseLog

package
v5.1.30 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(args *ArgsDownload) (fileName string, dataByte []byte, err error)

func Run

func Run()

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)

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsLog, dataCount int64, err error)

Jump to

Keyboard shortcuts

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