MCPcopy Create free account

hub / github.com/Rock-Candy-Tea/hexo-circle-of-friends / functions

Functions330 in github.com/Rock-Candy-Tea/hexo-circle-of-friends

↓ 32 callersFunctionsend_get_request
测试助手函数:发送GET请求并返回响应
api/src/tests.rs:18
↓ 22 callersFunctionselect_all_from_friends
查询`friends`表的所有数据
db/src/mysql.rs:256
↓ 17 callersFunctioncalculate_content_hash
计算HTML内容的SHA256哈希值
tools/src/lib.rs:258
↓ 16 callersFunctioncreate_sqlite_app
创建 SQLite 应用
api/src/lib.rs:71
↓ 16 callersFunctionsetup_test_db
辅助函数:获取测试数据库连接并设置测试环境
db/src/mysql.rs:339
↓ 16 callersFunctionsetup_test_db
辅助函数:创建测试数据库并返回连接池
db/src/sqlite.rs:347
↓ 13 callersFunctionstrptime_to_string_ymdhms
将时间结构转换为统一格式的字符串`%Y-%m-%d %H:%M:%S`,带时分秒
tools/src/lib.rs:71
↓ 12 callersFunctioncreate_mongodb_app
(mongodburi: &str)
api/src/lib.rs:120
↓ 12 callersFunctionselect_all_from_posts
查询`posts`表 按照`sort_rule`排序; 如果`start`和`end`同时为0,则查询全部; 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/mysql.rs:130
↓ 11 callersFunctioncreate_mysql_app
创建 MySQL 应用
api/src/lib.rs:96
↓ 11 callersFunctionselect_article_summary_by_link
( link: &str, pool: &MySqlPool, )
db/src/mysql.rs:300
↓ 10 callersFunctionget_env_var
获取环境变量,如果为空则返回错误
tools/src/lib.rs:229
↓ 10 callersFunctioninsert_article_summary
( summary: &ArticleSummary, pool: &MySqlPool, )
db/src/mysql.rs:276
↓ 9 callersFunctionget_json_friends_links
解析JSON文件为SettingsFriendsLinksJsonMeta结构
tools/src/lib.rs:248
↓ 9 callersFunctioninsert_friend_table
( friends: &metadata::Friends, pool: &MySqlPool, )
db/src/mysql.rs:31
↓ 8 callersFunctionselect_all_from_posts_with_linklike
查询`posts`表中`link`包含`domain_str`的数据 当num<0时,返回所有数据
db/src/mysql.rs:215
↓ 8 callersFunctionsetup_test_db
辅助函数:创建测试数据库连接
db/src/mongo.rs:348
↓ 7 callersMethodgenerate_summary
生成单个文章的摘要
downloader/src/genai/enhanced_provider.rs:38
↓ 6 callersFunctionbuild_client
构建请求客户端
downloader/src/download.rs:35
↓ 6 callersFunctionbulk_insert_post_table
( tuples: impl Iterator<Item = metadata::Posts>, pool: &MySqlPool, )
db/src/mysql.rs:47
↓ 6 callersFunctiondb_init
()
api_dependence/sql/db_interface.py:93
↓ 6 callersFunctiondelete_outdated_posts
(days: usize, dbpool: &MySqlPool)
db/src/mysql.rs:264
↓ 6 callersFunctionselect_all_from_friends
查询`friends`表的所有数据
db/src/sqlite.rs:262
↓ 6 callersFunctionsend_request
测试助手函数:发送请求(用于基础测试)
api/src/tests.rs:39
↓ 6 callersFunctionshould_update_summary
检查摘要是否需要更新
core/src/main.rs:47
↓ 6 callersFunctionstart_crawl_detailpages
( url: &str, client: &ClientWithMiddleware, )
downloader/src/download.rs:346
↓ 6 callersFunctionvalidate_article_data
验证文章数据结构
api/src/tests.rs:76
↓ 6 callersFunctionvalidate_statistical_data
验证统计数据结构
api/src/tests.rs:60
↓ 5 callersFunctionconnect_mongodb_clientdb
( mongodburi: &str, )
db/src/mongo.rs:11
↓ 5 callersFunctionconnect_mysql_dbpool
(url: &str)
db/src/mysql.rs:6
↓ 5 callersFunctionconnect_sqlite_dbpool
(filename: impl AsRef<Path>)
db/src/sqlite.rs:8
↓ 5 callersFunctionget_user_settings
加载用户配置文件 :return:
tools/utils.py:16
↓ 5 callersFunctionselect_all_from_posts
查询`posts`表 按照`sort_rule`排序; 如果`start`和`end`同时为0,则查询全部; 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/sqlite.rs:135
↓ 5 callersFunctionselect_article_summary_by_link
( link: &str, pool: &SqlitePool, )
db/src/sqlite.rs:308
↓ 5 callersFunctionselect_latest_time_from_posts
获取`posts`表中最近一次更新(`createdAt`最新)的时间
db/src/mysql.rs:248
↓ 5 callersFunctionstrptime_to_string_ymd
将时间结构转换为统一格式的字符串`%Y-%m-%d`,不带时分秒
tools/src/lib.rs:79
↓ 4 callersFunctionbulk_insert_post_table
( tuples: impl Iterator<Item = metadata::Posts>, db: &MongoDatabase, )
db/src/mongo.rs:37
↓ 4 callersFunctioncreate_test_config
()
downloader/src/genai/enhanced_provider.rs:466
↓ 4 callersFunctionget_version
获取当前版本信息 从 workspace 的统一版本配置中获取版本号, 所有二进制文件(core、api)都使用相同的版本
tools/src/lib.rs:906
↓ 4 callersFunctionget_yaml_settings
(path: &str)
tools/src/lib.rs:220
↓ 4 callersFunctioninsert_article_summary
( summary: &ArticleSummary, pool: &SqlitePool, )
db/src/sqlite.rs:289
↓ 4 callersFunctionselect_one_from_friends_with_linklike
查询`friends`表中`link`包含`domain_str`的一条数据
db/src/mysql.rs:234
↓ 4 callersFunctionstrftime_to_string_ymd
将可能不标准的时间字符串转换为统一格式的字符串`%Y-%m-%d`,不带时分秒
tools/src/lib.rs:84
↓ 4 callersFunctiontruncate_friend_table
(pool: &MySqlPool)
db/src/mysql.rs:117
↓ 4 callersFunctiontruncate_table
辅助函数:清空表
db/src/mysql.rs:363
↓ 4 callersFunctionvalidate_friend_data
验证朋友数据结构
api/src/tests.rs:105
↓ 3 callersFunctionbulk_insert_post_table
( tuples: impl Iterator<Item = metadata::Posts>, pool: &SqlitePool, )
db/src/sqlite.rs:52
↓ 3 callersFunctiondelete_outdated_posts
(days: usize, dbpool: &SqlitePool)
db/src/sqlite.rs:277
↓ 3 callersFunctiondelete_post_table
( tuples: impl Iterator<Item = metadata::Posts>, pool: &MySqlPool, )
db/src/mysql.rs:102
↓ 3 callersFunctiongenerate_content
( client: &ClientWithMiddleware, html: &str, )
downloader/src/genai/gemini.rs:11
↓ 3 callersMethodgenerate_single_summary
生成单个摘要(核心逻辑)
downloader/src/genai/enhanced_provider.rs:235
↓ 3 callersFunctionget_base_path
()
tools/utils.py:7
↓ 3 callersMethodget_current_version
从 Cargo.toml workspace 获取当前版本
update_version.py:32
↓ 3 callersMethodget_max_chars
获取最大字符数,如果未配置则返回默认值
data_structures/src/lib.rs:289
↓ 3 callersFunctionget_version
获取当前版本信息 Returns: dict: 包含版本号的字典
tools/utils.py:50
↓ 3 callersFunctioninsert_friend_table
( friends: &metadata::Friends, pool: &SqlitePool, )
db/src/sqlite.rs:36
↓ 3 callersFunctionselect_all_from_posts
查询`posts`表 按照`sort_rule`排序; 如果`start`和`end`同时为0,则查询全部; 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/mongo.rs:80
↓ 3 callersFunctionselect_all_from_posts_with_summary
查询`posts`表的所有数据,并LEFT JOIN `article_summaries`表获取摘要信息 当start==0并且end==0时,返回所有数据, 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/mysql.rs:157
↓ 3 callersFunctiontruncate_table
清空`tb`表的数据
db/src/sqlite.rs:271
↓ 2 callersFunctionbulk_insert_friend_table
( tuples: impl Iterator<Item = metadata::Friends>, pool: &MySqlPool, )
db/src/mysql.rs:76
↓ 2 callersFunctionbulk_insert_friend_table
( tuples: impl Iterator<Item = metadata::Friends>, pool: &SqlitePool, )
db/src/sqlite.rs:81
↓ 2 callersFunctioncheck_block_site
检查屏蔽url,匹配返回true(屏蔽),反之为false(不屏蔽)
downloader/src/download.rs:96
↓ 2 callersMethodchunk_content
将长内容分割成多个块
tools/src/html_extractor.rs:50
↓ 2 callersMethodclean_whitespace
清理多余的空白字符
tools/src/html_extractor.rs:146
↓ 2 callersMethodextract_article_content
提取HTML中的主要文章内容
tools/src/html_extractor.rs:28
↓ 2 callersMethodget_chunk_size
获取分块大小 (自动计算为 max_chars 的一半)
data_structures/src/lib.rs:294
↓ 2 callersFunctionget_joinset_result
( joinset: &mut JoinSet<Vec<BasePosts>>, base_url: &Url, )
downloader/src/download.rs:19
↓ 2 callersMethodget_max_concurrent
获取最大并发数,如果未配置则返回默认值
data_structures/src/lib.rs:279
↓ 2 callersFunctionget_yaml
(path: &str)
tools/src/lib.rs:212
↓ 2 callersFunctioninit_tracing
(logger_name: &str, filter_str: Option<&str>)
tools/src/lib.rs:17
↓ 2 callersFunctioninsert_friend_table
( friends: &Friends, db: &MongoDatabase, )
db/src/mongo.rs:28
↓ 2 callersFunctionquery_random_friend
(num)
api_dependence/mongodb/mongodbapi.py:122
↓ 2 callersMethodremove_scripts_and_styles
移除脚本和样式标签
tools/src/html_extractor.rs:83
↓ 2 callersFunctionselect_all_from_posts_with_linklike
查询`posts`表中`link`包含`domain_str`的数据 当num<0时,返回所有数据
db/src/sqlite.rs:221
↓ 2 callersFunctionselect_article_summary_by_hash
( content_hash: &str, pool: &MySqlPool, )
db/src/mysql.rs:313
↓ 2 callersFunctionselect_article_summary_by_hash
( content_hash: &str, pool: &SqlitePool, )
db/src/sqlite.rs:321
↓ 2 callersFunctionselect_article_summary_by_link
( link: &str, db: &MongoDatabase, )
db/src/mongo.rs:308
↓ 2 callersFunctionstart_crawl_postpages
( base_postpage_url: String, settings: &Settings, extra_feed_suffix: String, css_rules: &tools
downloader/src/download.rs:106
↓ 2 callersMethodstrip_html_tags
移除HTML标签
tools/src/html_extractor.rs:124
↓ 2 callersMethodtry_bigmodel_models
( &self, client: &ClientWithMiddleware, content: &str, )
downloader/src/genai/enhanced_provider.rs:313
↓ 2 callersMethodtry_gemini_models
( &self, client: &ClientWithMiddleware, content: &str, )
downloader/src/genai/enhanced_provider.rs:249
↓ 2 callersMethodtry_siliconflow_models
( &self, client: &ClientWithMiddleware, content: &str, )
downloader/src/genai/enhanced_provider.rs:279
↓ 1 callersMethod__get_mongo_engine
()
api_dependence/mongodb/db_interface.py:14
↓ 1 callersMethod__get_sql_engine
()
api_dependence/sql/db_interface.py:23
↓ 1 callersFunctionall
## 返回数据库统计信息和文章信息列表 ### 参数说明 - **start**: 文章信息列表从按rule排序后的顺序的开始位置 - **end**: 文章信息列表从按rule排序后的顺序的结束位置 - **rule**: 文章排序规则(创建时间crea
api/vercel.py:292
↓ 1 callersMethodbump_version
递增版本号
update_version.py:51
↓ 1 callersFunctioncheck_linkpage_res_length
检查link页面解析结果的长度 如果字段`author`、`link`、`avatar`缺失,则返回0 否则,检查`author`和`link`的长度: - 是否为0:若有一个为0,返回0 - 二者长度是否相等,如果不等,返回0,如果相等返回该长度
downloader/src/download.rs:71
↓ 1 callersFunctioncrawl_link_page
( url: &str, theme: &str, css_rule: &serde_yaml::Value, client: &ClientWithMiddleware, )
downloader/src/crawler.rs:13
↓ 1 callersFunctioncrawl_post_page
( url: &str, css_rules: &serde_yaml::Mapping, client: &ClientWithMiddleware, )
downloader/src/crawler.rs:84
↓ 1 callersFunctioncrawl_post_page_feed
( url: &str, base_url: &Url, client: &ClientWithMiddleware, )
downloader/src/crawler.rs:177
↓ 1 callersMethoddecode_html_entities
解码常见的HTML实体
tools/src/html_extractor.rs:133
↓ 1 callersFunctiondelete_article_summary_by_link
(link: &str, pool: &MySqlPool)
db/src/mysql.rs:326
↓ 1 callersFunctiondelete_article_summary_by_link
(link: &str, pool: &SqlitePool)
db/src/sqlite.rs:334
↓ 1 callersFunctiondelete_article_summary_by_link
( link: &str, db: &MongoDatabase, )
db/src/mongo.rs:328
↓ 1 callersFunctiondelete_outdated_posts
(days: usize, clientdb: &MongoDatabase)
db/src/mongo.rs:269
↓ 1 callersFunctiondelete_post_table
( tuples: impl Iterator<Item = Posts>, db: &MongoDatabase, )
db/src/mongo.rs:55
↓ 1 callersMethodextract_main_content
提取主要内容区域
tools/src/html_extractor.rs:94
↓ 1 callersFunctiongenerate_article_summaries
为文章生成摘要
core/src/main.rs:64
↓ 1 callersMethodgenerate_summary_with_chunks
分块处理长内容
downloader/src/genai/enhanced_provider.rs:166
↓ 1 callersMethodgenerate_summary_with_retry
带重试机制的摘要生成
downloader/src/genai/enhanced_provider.rs:112
next →1–100 of 330, ranked by callers