代码拉取完成,页面将自动刷新
package gorma
type AnalysisInterface interface {
Start(delimiters []string)
SaveReports(folder string) error
Close()
}
type Report struct {
Key string
Count uint64
Size uint64
NeverExpire uint64
AvgTtl uint64
}
type DBReports map[uint64][]Report
type KeyReports map[string]Report
type SortBySizeReports []Report
type SortByCountReports []Report
func (sr SortBySizeReports) Len() int {
return len(sr)
}
func (sr SortBySizeReports) Less(i, j int) bool {
return sr[i].Size > sr[j].Size
}
func (sr SortBySizeReports) Swap(i, j int) {
sr[i], sr[j] = sr[j], sr[i]
}
func (sr SortByCountReports) Len() int {
return len(sr)
}
func (sr SortByCountReports) Less(i, j int) bool {
return sr[i].Count > sr[j].Count
}
func (sr SortByCountReports) Swap(i, j int) {
sr[i], sr[j] = sr[j], sr[i]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。