model

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComparisonResult

type ComparisonResult struct {
	LogRecord       *LogRecord
	MatchedRecord   *LogRecord
	Differences     []FieldDiff
	MatchKey        string
	MatchFound      bool
	RequiredMissing []string
}

ComparisonResult 单条记录的对比结果

type FieldDiff

type FieldDiff struct {
	Index    int
	Name     string
	LogValue string
	StdValue string
}

FieldDiff 字段差异

type LogRecord

type LogRecord struct {
	Fields     []string
	FilePath   string
	LineNumber int
	TarName    string // 若来自 tar 包,记录包内文件名
}

LogRecord 日志记录

type LogTypeResult

type LogTypeResult struct {
	LogType           string
	TotalLogRecords   int
	TotalStdRecords   int
	MatchKeyCount     int
	StdMatchKeyCount  int
	CommonMatchKeys   int
	LogOnlyMatchKeys  int
	StdOnlyMatchKeys  int
	RecordsWithDiff   int
	RequiredStats     RequiredFieldStats
	ComparisonDetails []ComparisonResult
}

LogTypeResult 单个日志类型的对比结果

type OverallResult

type OverallResult struct {
	LogTypeResults map[string]*LogTypeResult
}

OverallResult 总体对比结果

type RequiredFieldStats

type RequiredFieldStats struct {
	TotalRecords         int
	RecordsWithMissing   int
	MissingFieldsSummary map[string]int
}

RequiredFieldStats 必填字段统计

Jump to

Keyboard shortcuts

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