package
0.0.0-20241228035806-3120d8b43d44
Repository: https://github.com/corvofeng/go-flarum.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AddNewArticleList 为某个分类添加话题.
ContentFmt 处理markdown样式.
ContentRich 用来转换文本, 转义以及允许用户添加一些富文本样式 该函数效率奇差, 但不会优化.
No description provided by the author
FlarumCreateCurrentUser 创建用户资源.
FlarumCreateDiscussion 创建帖子资源.
FlarumCreateForumInfo 从SiteInfo创建ForumInfo tags 当前站点具有的标签集合, TODO: 缓存.
FlarumCreateGroup 创建组信息.
FlarumCreateLocale 生成语言包配置.
FlarumCreatePost 创建评论.
FlarumCreatePostRelations 创建关系结构.
FlarumCreateTag 创建tag资源.
FlarumCreateTagRelations 创建关系结构.
FlarumCreateUser 创建用户资源.
FlarumCreateUserLikeRelations 点赞关系.
GetArticleCntFromRedisDB 从不同的数据库中获取点击数.
GetAvatarByID 获取用户头像.
GetCIDArticleMax 获取当前分类的偏移值.
GetDays 获取从建站开始, 到目前的天数, 用于主页中的显示.
GetRankMap you can get ttlmap by this.
GetSiteInfo 直接获取网站信息.
GetTopicListByPageNum 通过给定的页码查找话题的ID值.
GetUserNameByID 获取用户名称.
No description provided by the author
NewCaptcha 产生新的验证码图片.
PreProcessUserMention 预处理用户的引用 #14.
RankMapInit init a ttl map.
RedisGetUserByID 从Redis中获取缓存的用户.
SaveImage to static dir.
SetCaptchaUseRedisStore use redis to store captcha.
SQLArticleGetByID 通过 article id获取内容.
SQLCommentByID 获取一条评论.
SQLCommentListByCID 获取某条评论.
SQLCommentListByList 获取某条评论.
SQLCommentListByTopic 获取帖子的所有评论.
SQLCommentListByUser 获取某个用户的帖子信息.
No description provided by the author
No description provided by the author
No description provided by the author
tagID 为0 表示全部主题.
No description provided by the author
SQLGithubRegister github用户注册.
SQLUserGet 获取用户 当你不确定用户传来的是用户名还是用户id时, 可以调用该函数获取用户.
SQLUserGetByEmail 获取数据库中用户.
SQLUserGetByID 获取数据库用户.
SQLUserGetByName 获取数据库中用户.
No description provided by the author
TimelyResort 刷新Redis数据库中每个帖子的权重.
# Constants
No description provided by the author
FlarumAPIPath flarum 的api位置.
用于网站管理员.
# Variables
No description provided by the author
# Structs
No description provided by the author
AppConf 应用配置文件.
ArticleFeedListItem rss资源.
No description provided by the author
ArticleListItem data strucy only used in page.
ArticleMini 缩略版的Article信息.
ArticlePageInfo data in every list page.
ArticleRankItem 记录每个话题的权重.
No description provided by the author
ArticleTag 文章添加、编辑后传给后台任务的信息 TODO: delete.
CategoryRankData 一个分类下的排序数据.
No description provided by the author
FlarumArticlePageInfo flarum站点的数据信息.
MainConf 主配置.
No description provided by the author
No description provided by the author
RankMap time to live map.
No description provided by the author
No description provided by the author
RestfulAPIBase for restful API.
RestfulReply Reply for restful API.
RestfulTopic topic for restful API.
RestfulUser user for restful API.
SiteConf 站点配置.
SiteInfo 当前站点的一些集合类信息.
Tag 帖子分类.
Topic 基础的文档类, 在数据库表中的字段.
TopicTags 帖子的标签 使用gorm 的many2many, 不需要单独初始化了.
User store in database.
No description provided by the author
No description provided by the author
It will record the user relation with the topic
*/.