Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rock-Candy-Tea/hexo-circle-of-friends
/ functions
Functions
330 in github.com/Rock-Candy-Tea/hexo-circle-of-friends
⨍
Functions
330
◇
Types & classes
51
↳
Endpoints
8
↓ 32 callers
Function
send_get_request
测试助手函数:发送GET请求并返回响应
api/src/tests.rs:18
↓ 22 callers
Function
select_all_from_friends
查询`friends`表的所有数据
db/src/mysql.rs:256
↓ 17 callers
Function
calculate_content_hash
计算HTML内容的SHA256哈希值
tools/src/lib.rs:258
↓ 16 callers
Function
create_sqlite_app
创建 SQLite 应用
api/src/lib.rs:71
↓ 16 callers
Function
setup_test_db
辅助函数:获取测试数据库连接并设置测试环境
db/src/mysql.rs:339
↓ 16 callers
Function
setup_test_db
辅助函数:创建测试数据库并返回连接池
db/src/sqlite.rs:347
↓ 13 callers
Function
strptime_to_string_ymdhms
将时间结构转换为统一格式的字符串`%Y-%m-%d %H:%M:%S`,带时分秒
tools/src/lib.rs:71
↓ 12 callers
Function
create_mongodb_app
(mongodburi: &str)
api/src/lib.rs:120
↓ 12 callers
Function
select_all_from_posts
查询`posts`表 按照`sort_rule`排序; 如果`start`和`end`同时为0,则查询全部; 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/mysql.rs:130
↓ 11 callers
Function
create_mysql_app
创建 MySQL 应用
api/src/lib.rs:96
↓ 11 callers
Function
select_article_summary_by_link
( link: &str, pool: &MySqlPool, )
db/src/mysql.rs:300
↓ 10 callers
Function
get_env_var
获取环境变量,如果为空则返回错误
tools/src/lib.rs:229
↓ 10 callers
Function
insert_article_summary
( summary: &ArticleSummary, pool: &MySqlPool, )
db/src/mysql.rs:276
↓ 9 callers
Function
get_json_friends_links
解析JSON文件为SettingsFriendsLinksJsonMeta结构
tools/src/lib.rs:248
↓ 9 callers
Function
insert_friend_table
( friends: &metadata::Friends, pool: &MySqlPool, )
db/src/mysql.rs:31
↓ 8 callers
Function
select_all_from_posts_with_linklike
查询`posts`表中`link`包含`domain_str`的数据 当num<0时,返回所有数据
db/src/mysql.rs:215
↓ 8 callers
Function
setup_test_db
辅助函数:创建测试数据库连接
db/src/mongo.rs:348
↓ 7 callers
Method
generate_summary
生成单个文章的摘要
downloader/src/genai/enhanced_provider.rs:38
↓ 6 callers
Function
build_client
构建请求客户端
downloader/src/download.rs:35
↓ 6 callers
Function
bulk_insert_post_table
( tuples: impl Iterator<Item = metadata::Posts>, pool: &MySqlPool, )
db/src/mysql.rs:47
↓ 6 callers
Function
db_init
()
api_dependence/sql/db_interface.py:93
↓ 6 callers
Function
delete_outdated_posts
(days: usize, dbpool: &MySqlPool)
db/src/mysql.rs:264
↓ 6 callers
Function
select_all_from_friends
查询`friends`表的所有数据
db/src/sqlite.rs:262
↓ 6 callers
Function
send_request
测试助手函数:发送请求(用于基础测试)
api/src/tests.rs:39
↓ 6 callers
Function
should_update_summary
检查摘要是否需要更新
core/src/main.rs:47
↓ 6 callers
Function
start_crawl_detailpages
( url: &str, client: &ClientWithMiddleware, )
downloader/src/download.rs:346
↓ 6 callers
Function
validate_article_data
验证文章数据结构
api/src/tests.rs:76
↓ 6 callers
Function
validate_statistical_data
验证统计数据结构
api/src/tests.rs:60
↓ 5 callers
Function
connect_mongodb_clientdb
( mongodburi: &str, )
db/src/mongo.rs:11
↓ 5 callers
Function
connect_mysql_dbpool
(url: &str)
db/src/mysql.rs:6
↓ 5 callers
Function
connect_sqlite_dbpool
(filename: impl AsRef<Path>)
db/src/sqlite.rs:8
↓ 5 callers
Function
get_user_settings
加载用户配置文件 :return:
tools/utils.py:16
↓ 5 callers
Function
select_all_from_posts
查询`posts`表 按照`sort_rule`排序; 如果`start`和`end`同时为0,则查询全部; 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/sqlite.rs:135
↓ 5 callers
Function
select_article_summary_by_link
( link: &str, pool: &SqlitePool, )
db/src/sqlite.rs:308
↓ 5 callers
Function
select_latest_time_from_posts
获取`posts`表中最近一次更新(`createdAt`最新)的时间
db/src/mysql.rs:248
↓ 5 callers
Function
strptime_to_string_ymd
将时间结构转换为统一格式的字符串`%Y-%m-%d`,不带时分秒
tools/src/lib.rs:79
↓ 4 callers
Function
bulk_insert_post_table
( tuples: impl Iterator<Item = metadata::Posts>, db: &MongoDatabase, )
db/src/mongo.rs:37
↓ 4 callers
Function
create_test_config
()
downloader/src/genai/enhanced_provider.rs:466
↓ 4 callers
Function
get_version
获取当前版本信息 从 workspace 的统一版本配置中获取版本号, 所有二进制文件(core、api)都使用相同的版本
tools/src/lib.rs:906
↓ 4 callers
Function
get_yaml_settings
(path: &str)
tools/src/lib.rs:220
↓ 4 callers
Function
insert_article_summary
( summary: &ArticleSummary, pool: &SqlitePool, )
db/src/sqlite.rs:289
↓ 4 callers
Function
select_one_from_friends_with_linklike
查询`friends`表中`link`包含`domain_str`的一条数据
db/src/mysql.rs:234
↓ 4 callers
Function
strftime_to_string_ymd
将可能不标准的时间字符串转换为统一格式的字符串`%Y-%m-%d`,不带时分秒
tools/src/lib.rs:84
↓ 4 callers
Function
truncate_friend_table
(pool: &MySqlPool)
db/src/mysql.rs:117
↓ 4 callers
Function
truncate_table
辅助函数:清空表
db/src/mysql.rs:363
↓ 4 callers
Function
validate_friend_data
验证朋友数据结构
api/src/tests.rs:105
↓ 3 callers
Function
bulk_insert_post_table
( tuples: impl Iterator<Item = metadata::Posts>, pool: &SqlitePool, )
db/src/sqlite.rs:52
↓ 3 callers
Function
delete_outdated_posts
(days: usize, dbpool: &SqlitePool)
db/src/sqlite.rs:277
↓ 3 callers
Function
delete_post_table
( tuples: impl Iterator<Item = metadata::Posts>, pool: &MySqlPool, )
db/src/mysql.rs:102
↓ 3 callers
Function
generate_content
( client: &ClientWithMiddleware, html: &str, )
downloader/src/genai/gemini.rs:11
↓ 3 callers
Method
generate_single_summary
生成单个摘要(核心逻辑)
downloader/src/genai/enhanced_provider.rs:235
↓ 3 callers
Function
get_base_path
()
tools/utils.py:7
↓ 3 callers
Method
get_current_version
从 Cargo.toml workspace 获取当前版本
update_version.py:32
↓ 3 callers
Method
get_max_chars
获取最大字符数,如果未配置则返回默认值
data_structures/src/lib.rs:289
↓ 3 callers
Function
get_version
获取当前版本信息 Returns: dict: 包含版本号的字典
tools/utils.py:50
↓ 3 callers
Function
insert_friend_table
( friends: &metadata::Friends, pool: &SqlitePool, )
db/src/sqlite.rs:36
↓ 3 callers
Function
select_all_from_posts
查询`posts`表 按照`sort_rule`排序; 如果`start`和`end`同时为0,则查询全部; 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/mongo.rs:80
↓ 3 callers
Function
select_all_from_posts_with_summary
查询`posts`表的所有数据,并LEFT JOIN `article_summaries`表获取摘要信息 当start==0并且end==0时,返回所有数据, 否则只查询`start-end`条数据,如果`start>end`,会报错
db/src/mysql.rs:157
↓ 3 callers
Function
truncate_table
清空`tb`表的数据
db/src/sqlite.rs:271
↓ 2 callers
Function
bulk_insert_friend_table
( tuples: impl Iterator<Item = metadata::Friends>, pool: &MySqlPool, )
db/src/mysql.rs:76
↓ 2 callers
Function
bulk_insert_friend_table
( tuples: impl Iterator<Item = metadata::Friends>, pool: &SqlitePool, )
db/src/sqlite.rs:81
↓ 2 callers
Function
check_block_site
检查屏蔽url,匹配返回true(屏蔽),反之为false(不屏蔽)
downloader/src/download.rs:96
↓ 2 callers
Method
chunk_content
将长内容分割成多个块
tools/src/html_extractor.rs:50
↓ 2 callers
Method
clean_whitespace
清理多余的空白字符
tools/src/html_extractor.rs:146
↓ 2 callers
Method
extract_article_content
提取HTML中的主要文章内容
tools/src/html_extractor.rs:28
↓ 2 callers
Method
get_chunk_size
获取分块大小 (自动计算为 max_chars 的一半)
data_structures/src/lib.rs:294
↓ 2 callers
Function
get_joinset_result
( joinset: &mut JoinSet<Vec<BasePosts>>, base_url: &Url, )
downloader/src/download.rs:19
↓ 2 callers
Method
get_max_concurrent
获取最大并发数,如果未配置则返回默认值
data_structures/src/lib.rs:279
↓ 2 callers
Function
get_yaml
(path: &str)
tools/src/lib.rs:212
↓ 2 callers
Function
init_tracing
(logger_name: &str, filter_str: Option<&str>)
tools/src/lib.rs:17
↓ 2 callers
Function
insert_friend_table
( friends: &Friends, db: &MongoDatabase, )
db/src/mongo.rs:28
↓ 2 callers
Function
query_random_friend
(num)
api_dependence/mongodb/mongodbapi.py:122
↓ 2 callers
Method
remove_scripts_and_styles
移除脚本和样式标签
tools/src/html_extractor.rs:83
↓ 2 callers
Function
select_all_from_posts_with_linklike
查询`posts`表中`link`包含`domain_str`的数据 当num<0时,返回所有数据
db/src/sqlite.rs:221
↓ 2 callers
Function
select_article_summary_by_hash
( content_hash: &str, pool: &MySqlPool, )
db/src/mysql.rs:313
↓ 2 callers
Function
select_article_summary_by_hash
( content_hash: &str, pool: &SqlitePool, )
db/src/sqlite.rs:321
↓ 2 callers
Function
select_article_summary_by_link
( link: &str, db: &MongoDatabase, )
db/src/mongo.rs:308
↓ 2 callers
Function
start_crawl_postpages
( base_postpage_url: String, settings: &Settings, extra_feed_suffix: String, css_rules: &tools
downloader/src/download.rs:106
↓ 2 callers
Method
strip_html_tags
移除HTML标签
tools/src/html_extractor.rs:124
↓ 2 callers
Method
try_bigmodel_models
( &self, client: &ClientWithMiddleware, content: &str, )
downloader/src/genai/enhanced_provider.rs:313
↓ 2 callers
Method
try_gemini_models
( &self, client: &ClientWithMiddleware, content: &str, )
downloader/src/genai/enhanced_provider.rs:249
↓ 2 callers
Method
try_siliconflow_models
( &self, client: &ClientWithMiddleware, content: &str, )
downloader/src/genai/enhanced_provider.rs:279
↓ 1 callers
Method
__get_mongo_engine
()
api_dependence/mongodb/db_interface.py:14
↓ 1 callers
Method
__get_sql_engine
()
api_dependence/sql/db_interface.py:23
↓ 1 callers
Function
all
## 返回数据库统计信息和文章信息列表 ### 参数说明 - **start**: 文章信息列表从按rule排序后的顺序的开始位置 - **end**: 文章信息列表从按rule排序后的顺序的结束位置 - **rule**: 文章排序规则(创建时间crea
api/vercel.py:292
↓ 1 callers
Method
bump_version
递增版本号
update_version.py:51
↓ 1 callers
Function
check_linkpage_res_length
检查link页面解析结果的长度 如果字段`author`、`link`、`avatar`缺失,则返回0 否则,检查`author`和`link`的长度: - 是否为0:若有一个为0,返回0 - 二者长度是否相等,如果不等,返回0,如果相等返回该长度
downloader/src/download.rs:71
↓ 1 callers
Function
crawl_link_page
( url: &str, theme: &str, css_rule: &serde_yaml::Value, client: &ClientWithMiddleware, )
downloader/src/crawler.rs:13
↓ 1 callers
Function
crawl_post_page
( url: &str, css_rules: &serde_yaml::Mapping, client: &ClientWithMiddleware, )
downloader/src/crawler.rs:84
↓ 1 callers
Function
crawl_post_page_feed
( url: &str, base_url: &Url, client: &ClientWithMiddleware, )
downloader/src/crawler.rs:177
↓ 1 callers
Method
decode_html_entities
解码常见的HTML实体
tools/src/html_extractor.rs:133
↓ 1 callers
Function
delete_article_summary_by_link
(link: &str, pool: &MySqlPool)
db/src/mysql.rs:326
↓ 1 callers
Function
delete_article_summary_by_link
(link: &str, pool: &SqlitePool)
db/src/sqlite.rs:334
↓ 1 callers
Function
delete_article_summary_by_link
( link: &str, db: &MongoDatabase, )
db/src/mongo.rs:328
↓ 1 callers
Function
delete_outdated_posts
(days: usize, clientdb: &MongoDatabase)
db/src/mongo.rs:269
↓ 1 callers
Function
delete_post_table
( tuples: impl Iterator<Item = Posts>, db: &MongoDatabase, )
db/src/mongo.rs:55
↓ 1 callers
Method
extract_main_content
提取主要内容区域
tools/src/html_extractor.rs:94
↓ 1 callers
Function
generate_article_summaries
为文章生成摘要
core/src/main.rs:64
↓ 1 callers
Method
generate_summary_with_chunks
分块处理长内容
downloader/src/genai/enhanced_provider.rs:166
↓ 1 callers
Method
generate_summary_with_retry
带重试机制的摘要生成
downloader/src/genai/enhanced_provider.rs:112
next →
1–100 of 330, ranked by callers