MCPcopy Create free account

hub / github.com/BeyondXinXin/nixvis / functions

Functions159 in github.com/BeyondXinXin/nixvis

↓ 17 callersFunctionsetTime
setTime 设置指定时间的时、分、秒,保留原日期
internal/util/date_utils.go:142
↓ 13 callersMethodClose
关闭数据库连接
internal/storage/repository.go:72
↓ 10 callersFunctionloadLogs
()
internal/web/assets/static/js/logs.js:205
↓ 9 callersFunctionfetchStats
(type, params = {})
internal/web/assets/static/js/api.js:16
↓ 7 callersMethodQuery
(query StatsQuery)
internal/stats/stats.go:27
↓ 6 callersMethodGetDB
获取数据库连接
internal/storage/repository.go:81
↓ 6 callersFunctionReadConfig
ReadConfig 读取配置文件并返回配置,同时初始化 ID 映射
internal/util/config.go:64
↓ 5 callersFunctiongetUserPreference
(key, defaultValue)
internal/web/assets/static/js/utils.js:29
↓ 5 callersFunctionsaveUserPreference
(key, value)
internal/web/assets/static/js/utils.js:24
↓ 5 callersFunctionupdateClientTable
(tableId, data, showPv = false)
internal/web/assets/static/js/ranking.js:28
↓ 3 callersFunctionGetAllWebsiteIDs
GetAllWebsiteIDs 获取所有网站的 ID 列表
internal/util/config.go:101
↓ 3 callersFunctionGetWebsiteByID
GetWebsiteByID 根据 ID 获取对应的 WebsiteConfig
internal/util/config.go:92
↓ 3 callersFunctiongetRequiredString
getRequiredString 获取并验证必须的字符串参数
internal/stats/stats.go:231
↓ 3 callersFunctionrefreshData
()
internal/web/assets/static/js/main.js:90
↓ 2 callersMethodFormat
(entry *logrus.Entry)
internal/util/log.go:26
↓ 2 callersFunctionParseInterval
ParseInterval 解析间隔配置字符串,支持分钟(m)和秒(s)单位
internal/util/config.go:111
↓ 2 callersFunctionTimePeriod
TimePeriod 根据时间范围字符串计算开始和结束时间
internal/util/date_utils.go:9
↓ 2 callersFunctiondisplayError
(message)
internal/web/assets/static/js/logs.js:359
↓ 2 callersFunctiondisplayErrorMessage
(message)
internal/web/assets/static/js/charts.js:203
↓ 2 callersFunctionexecutePeriodicTasks
executePeriodicTasks 执行周期性任务
cmd/nixvis/main.go:187
↓ 2 callersFunctionfectchLocationStats
(websiteId, timeRange, locationType, limit = 99)
internal/web/assets/static/js/api.js:70
↓ 2 callersFunctionfetchWebsites
()
internal/web/assets/static/js/api.js:1
↓ 2 callersFunctionformatTraffic
(traffic)
internal/web/assets/static/js/utils.js:9
↓ 2 callersFunctioninitThemeManager
()
internal/web/assets/static/js/theme.js:2
↓ 2 callersFunctioninitWebsiteSelector
()
internal/web/assets/static/js/logs.js:81
↓ 2 callersFunctionlooksLikeDomain
(domain string)
internal/stats/referer_stats.go:170
↓ 2 callersFunctionmonthBounds
monthBounds 返回指定日期所在月份的第一天和最后一天
internal/util/date_utils.go:132
↓ 2 callersFunctionnormalizeGeoData
(statsData)
internal/web/assets/static/js/maps.js:56
↓ 2 callersFunctionnormalizeRefererDomain
(referer string)
internal/stats/referer_stats.go:128
↓ 2 callersFunctionremoveSuffixes
去掉地区名称后缀
internal/netparser/ip_geo.go:317
↓ 2 callersMethodscanSingleFile
scanSingleFile 扫描单个日志文件
internal/storage/log_parser.go:161
↓ 2 callersFunctionupdateChart
()
internal/web/assets/static/js/charts.js:70
↓ 2 callersFunctionupdateChartsTheme
()
internal/web/assets/static/js/theme.js:54
↓ 2 callersFunctionupdateGeoMap
()
internal/web/assets/static/js/maps.js:207
↓ 2 callersFunctionupdatePaginationControls
(loading = false)
internal/web/assets/static/js/logs.js:337
↓ 2 callersFunctionupdateThemeToggleButton
(isDarkMode)
internal/web/assets/static/js/theme.js:42
↓ 2 callersFunctionweekBounds
weekBounds 返回包含指定日期的那一周的开始和结束时间
internal/util/date_utils.go:112
↓ 1 callersMethodBatchInsertLogsForWebsite
为特定网站批量插入日志记录
internal/storage/repository.go:86
↓ 1 callersMethodBuildQueryFromRequest
BuildQueryFromRequest 根据请求参数构建查询对象
internal/stats/stats.go:142
↓ 1 callersMethodCleanOldLogs
CleanOldLogs 清理45天前的日志数据
internal/storage/log_parser.go:98
↓ 1 callersFunctionCloseLogFile
CloseLogFile 关闭日志文件
internal/util/log.go:121
↓ 1 callersFunctionConfigureLogging
configureLogging 配置日志
internal/util/log.go:50
↓ 1 callersFunctionEmptyParserResult
EmptyParserResult 生成空结果
internal/storage/log_parser.go:356
↓ 1 callersFunctionExtractIPRegionDB
ExtractIPRegionDB 从嵌入的文件系统中提取 IP2Region 数据库
internal/netparser/ip_geo.go:26
↓ 1 callersFunctionFormatDateWithWeekday
FormatDateWithWeekday 返回格式化的日期字符串,可选是否包含星期 格式:M.D 或 M.D 周X
internal/util/date_utils.go:100
↓ 1 callersMethodGet
Get 从缓存中获取数据,带过期检查
internal/stats/stats_cache.go:28
↓ 1 callersFunctionGetIPLocation
GetIPLocation 获取 IP 的地理位置信息
internal/netparser/ip_geo.go:82
↓ 1 callersMethodGetManager
GetManager 获取指定类型的统计管理器
internal/stats/stats.go:77
↓ 1 callersFunctionGetStaticFS
GetStaticFS 返回静态文件的文件系统
internal/web/assets.go:17
↓ 1 callersMethodInit
初始化数据库
internal/storage/repository.go:67
↓ 1 callersFunctionInitIPGeoLocation
InitIPGeoLocation 初始化 IP 地理位置查询
internal/netparser/ip_geo.go:49
↓ 1 callersFunctionInitPVFilters
InitPVFilters 初始化PV过滤规则
internal/netparser/pv_filter.go:17
↓ 1 callersFunctionLoadTemplates
LoadTemplates 加载并返回解析好的模板
internal/web/assets.go:26
↓ 1 callersFunctionNewBrowserStatsManager
(userRepoPtr *storage.Repository)
internal/stats/client_stats.go:42
↓ 1 callersFunctionNewDeviceStatsManager
(userRepoPtr *storage.Repository)
internal/stats/client_stats.go:56
↓ 1 callersFunctionNewLocationStatsManager
(userRepoPtr *storage.Repository)
internal/stats/client_stats.go:63
↓ 1 callersFunctionNewLogParser
NewLogParser 创建新的日志解析器
internal/storage/log_parser.go:51
↓ 1 callersFunctionNewLogsStatsManager
NewLogsStatsManager 创建日志查询管理器
internal/stats/logs.go:52
↓ 1 callersFunctionNewOsStatsManager
(userRepoPtr *storage.Repository)
internal/stats/client_stats.go:49
↓ 1 callersFunctionNewOverallStatsManager
NewOverallStatsManager 创建一个新的 OverallStatsManager 实例
internal/stats/overall_stats.go:27
↓ 1 callersFunctionNewRepository
()
internal/storage/repository.go:39
↓ 1 callersFunctionNewStatsCache
NewStatsCache 创建一个新的统计缓存
internal/stats/stats_cache.go:21
↓ 1 callersFunctionNewStatsFactory
NewStatsFactory 创建新的统计工厂
internal/stats/stats.go:40
↓ 1 callersFunctionNewTimeSeriesStatsManager
NewTimeSeriesStatsManager 创建一个新的 TimeSeriesStatsManager 实例
internal/stats/timeseries_stats.go:34
↓ 1 callersFunctionNewURLStatsManager
(userRepoPtr *storage.Repository)
internal/stats/client_stats.go:28
↓ 1 callersFunctionNewrefererStatsManager
(userRepoPtr *storage.Repository)
internal/stats/client_stats.go:35
↓ 1 callersFunctionParseUserAgent
ParseUserAgent 解析 User-Agent 字符串
internal/netparser/user_agent_parser.go:6
↓ 1 callersFunctionProcessCliCommands
HandleAppConfig 处理应用程序配置初始化和命令行参数
internal/util/app_cli.go:25
↓ 1 callersMethodQueryStats
QueryStats 通过指定类型的管理器查询统计数据
internal/stats/stats.go:86
↓ 1 callersFunctionReadRawConfig
ReadRawConfig 读取配置文件但不初始化全局变量
internal/util/config.go:47
↓ 1 callersFunctionRotateLogFile
RotateLogFile 轮转日志文件
internal/util/log.go:80
↓ 1 callersMethodScanNginxLogs
ScanNginxLogs 增量扫描Nginx日志文件
internal/storage/log_parser.go:119
↓ 1 callersMethodSet
Set 添加数据到缓存
internal/stats/stats_cache.go:46
↓ 1 callersFunctionSetupRoutes
初始化Web路由
internal/web/handler.go:15
↓ 1 callersFunctionShouldCountAsPageView
ShouldCountAsPageView 判断是否符合 PV 过滤条件
internal/netparser/pv_filter.go:40
↓ 1 callersFunctionTimePointsAndLabels
TimePointsAndLabels 根据时间范围类型和视图类型直接返回时间点数组和标签数组
internal/util/date_utils.go:37
↓ 1 callersFunctionbindEventListeners
()
internal/web/assets/static/js/charts.js:52
↓ 1 callersFunctionbindEventListeners
()
internal/web/assets/static/js/logs.js:122
↓ 1 callersFunctionbindEventListeners
()
internal/web/assets/static/js/main.js:78
↓ 1 callersFunctionbindEventListeners
()
internal/web/assets/static/js/theme.js:16
↓ 1 callersFunctionbindMapViewToggle
()
internal/web/assets/static/js/maps.js:41
↓ 1 callersMethodbuildCacheKey
buildCacheKey 构建缓存键
internal/stats/stats.go:114
↓ 1 callersFunctioncleanService
cleanService 清理 nixvis 服务、释放端口和删除数据
internal/util/app_cli.go:221
↓ 1 callersMethodcreateTables
()
internal/storage/repository.go:176
↓ 1 callersFunctioncurrentWebsiteDomain
(websiteID string)
internal/stats/referer_stats.go:115
↓ 1 callersMethoddetermineStartOffset
determineStartOffset 确定扫描起始位置
internal/storage/log_parser.go:225
↓ 1 callersFunctionfetchBrowserStats
(websiteId, timeRange, limit = 10)
internal/web/assets/static/js/api.js:58
↓ 1 callersFunctionfetchDeviceStats
(websiteId, timeRange, limit = 10)
internal/web/assets/static/js/api.js:66
↓ 1 callersFunctionfetchLogs
(websiteId, page, pageSize, sortField, sortOrder, filter)
internal/web/assets/static/js/api.js:74
↓ 1 callersFunctionfetchOSStats
(websiteId, timeRange, limit = 10)
internal/web/assets/static/js/api.js:62
↓ 1 callersFunctionfetchOverallStats
(websiteId, timeRange)
internal/web/assets/static/js/api.js:46
↓ 1 callersFunctionfetchRefererStats
(websiteId, timeRange, limit = 10)
internal/web/assets/static/js/api.js:54
↓ 1 callersFunctionfetchTimeSeriesStats
(websiteId, timeRange, viewType)
internal/web/assets/static/js/api.js:42
↓ 1 callersFunctionfetchUrlStats
(websiteId, timeRange, limit = 10)
internal/web/assets/static/js/api.js:50
↓ 1 callersFunctionfindAndTerminateProcesses
findAndTerminateProcesses 查找并终止指定进程
internal/util/app_cli.go:235
↓ 1 callersFunctionformatRangeValues
formatRangeValues 生成SQL中的值列表 (0, ?, ?), (1, ?, ?), ...
internal/stats/timeseries_stats.go:133
↓ 1 callersFunctiongenerateID
generateID 根据输入字符串生成唯一 ID
internal/util/config.go:135
↓ 1 callersFunctiongetRequiredInt
getRequiredInt 获取并验证必须的整数参数
internal/stats/stats.go:220
↓ 1 callersFunctiongetRequiredStringEnum
getRequiredStringEnum 获取并验证必须的字符串参数,且值必须在允许列表中
internal/stats/stats.go:239
↓ 1 callersFunctioninitChart
()
internal/web/assets/static/js/charts.js:16
next →1–100 of 159, ranked by callers