Documentation ¶
Index ¶
- Constants
- func RegisterRoutes(g *echo.Group)
- type AccountController
- func (AccountController) Activate(ctx echo.Context) error
- func (AccountController) ChangeAvatar(ctx echo.Context) error
- func (AccountController) ChangePwd(ctx echo.Context) error
- func (a AccountController) Edit(ctx echo.Context) error
- func (AccountController) ForgetPasswd(ctx echo.Context) error
- func (AccountController) Login(ctx echo.Context) error
- func (AccountController) Logout(ctx echo.Context) error
- func (a AccountController) Register(ctx echo.Context) error
- func (a AccountController) RegisterRoute(g *echo.Group)
- func (AccountController) ResetPasswd(ctx echo.Context) error
- func (a AccountController) SendActivateEmail(ctx echo.Context) error
- func (AccountController) Unbind(ctx echo.Context) error
- type ArticleController
- func (ArticleController) Crawl(ctx echo.Context) error
- func (ArticleController) Create(ctx echo.Context) error
- func (ArticleController) Detail(ctx echo.Context) error
- func (ArticleController) Modify(ctx echo.Context) error
- func (ArticleController) ReadList(ctx echo.Context) error
- func (a ArticleController) RegisterRoute(g *echo.Group)
- type BookController
- type CaptchaController
- type CommentController
- func (c CommentController) ArticleDetail(ctx echo.Context) error
- func (CommentController) AtUsers(ctx echo.Context) error
- func (CommentController) CommentList(ctx echo.Context) error
- func (CommentController) Create(ctx echo.Context) error
- func (CommentController) Modify(ctx echo.Context) error
- func (c CommentController) RegisterRoute(g *echo.Group)
- func (c CommentController) TopicDetail(ctx echo.Context) error
- type DownloadController
- type FavoriteController
- type FeedController
- type GCTTController
- func (GCTTController) Apply(ctx echo.Context) error
- func (GCTTController) Create(ctx echo.Context) error
- func (g GCTTController) Index(ctx echo.Context) error
- func (GCTTController) IssueList(ctx echo.Context) error
- func (g GCTTController) RegisterRoute(eg *echo.Group)
- func (GCTTController) User(ctx echo.Context) error
- func (GCTTController) UserList(ctx echo.Context) error
- func (GCTTController) Webhook(ctx echo.Context) error
- type GiftController
- type ImageController
- type IndexController
- func (IndexController) Index(ctx echo.Context) error
- func (IndexController) Link(ctx echo.Context) error
- func (IndexController) Markdown(ctx echo.Context) error
- func (IndexController) OldIndex(ctx echo.Context) error
- func (IndexController) Pkgdoc(ctx echo.Context) error
- func (i IndexController) RegisterRoute(g *echo.Group)
- func (IndexController) WrapUrl(ctx echo.Context) error
- type InstallController
- type LikeController
- type LinkController
- type MessageController
- type MissionController
- type OAuthController
- type ProjectController
- func (ProjectController) CheckExist(ctx echo.Context) error
- func (ProjectController) Create(ctx echo.Context) error
- func (ProjectController) Detail(ctx echo.Context) error
- func (ProjectController) Modify(ctx echo.Context) error
- func (ProjectController) ReadList(ctx echo.Context) error
- func (p ProjectController) RegisterRoute(g *echo.Group)
- type ReadingController
- type ResourceController
- func (ResourceController) Create(ctx echo.Context) error
- func (ResourceController) Detail(ctx echo.Context) error
- func (ResourceController) Modify(ctx echo.Context) error
- func (ResourceController) ReadCatResources(ctx echo.Context) error
- func (ResourceController) ReadList(ctx echo.Context) error
- func (r ResourceController) RegisterRoute(g *echo.Group)
- type SearchController
- type SidebarController
- func (SidebarController) ActiveUser(ctx echo.Context) error
- func (SidebarController) FriendLinks(ctx echo.Context) error
- func (SidebarController) HotNodes(ctx echo.Context) error
- func (SidebarController) NewestUser(ctx echo.Context) error
- func (SidebarController) OtherTopics(ctx echo.Context) error
- func (SidebarController) RecentArticle(ctx echo.Context) error
- func (SidebarController) RecentComment(ctx echo.Context) error
- func (SidebarController) RecentDynamic(ctx echo.Context) error
- func (SidebarController) RecentProject(ctx echo.Context) error
- func (SidebarController) RecentReading(ctx echo.Context) error
- func (SidebarController) RecentResource(ctx echo.Context) error
- func (SidebarController) RecentTopic(ctx echo.Context) error
- func (s SidebarController) RegisterRoute(g *echo.Group)
- func (SidebarController) ViewRank(ctx echo.Context) error
- func (SidebarController) WebsiteStat(ctx echo.Context) error
- type SubjectController
- func (s SubjectController) Contribute(ctx echo.Context) error
- func (SubjectController) Create(ctx echo.Context) error
- func (s SubjectController) Follow(ctx echo.Context) error
- func (SubjectController) Index(ctx echo.Context) error
- func (s SubjectController) Mine(ctx echo.Context) error
- func (SubjectController) Modify(ctx echo.Context) error
- func (s SubjectController) MyArticles(ctx echo.Context) error
- func (s SubjectController) RegisterRoute(g *echo.Group)
- func (s SubjectController) RemoveContribute(ctx echo.Context) error
- type TopController
- type TopicController
- func (TopicController) Append(ctx echo.Context) error
- func (TopicController) Create(ctx echo.Context) error
- func (TopicController) Detail(ctx echo.Context) error
- func (TopicController) GoNodeTopics(ctx echo.Context) error
- func (TopicController) Modify(ctx echo.Context) error
- func (TopicController) NodeTopics(ctx echo.Context) error
- func (TopicController) Nodes(ctx echo.Context) error
- func (t TopicController) RegisterRoute(g *echo.Group)
- func (TopicController) SetTop(ctx echo.Context) error
- func (t TopicController) TopicList(ctx echo.Context) error
- func (t TopicController) Topics(ctx echo.Context) error
- func (t TopicController) TopicsLast(ctx echo.Context) error
- func (t TopicController) TopicsNoReply(ctx echo.Context) error
- type UserController
- func (UserController) Articles(ctx echo.Context) error
- func (UserController) Comments(ctx echo.Context) error
- func (UserController) EmailUnsub(ctx echo.Context) error
- func (UserController) Home(ctx echo.Context) error
- func (UserController) Projects(ctx echo.Context) error
- func (UserController) ReadList(ctx echo.Context) error
- func (u UserController) RegisterRoute(g *echo.Group)
- func (UserController) Resources(ctx echo.Context) error
- func (UserController) Topics(ctx echo.Context) error
- type UserRichController
- type WebsocketController
- type WechatController
- type WideController
- type WikiController
Constants ¶
const GoStoragePrefix = "https://dl.google.com/go/"
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
Types ¶
type AccountController ¶
type AccountController struct{}
func (AccountController) Activate ¶
func (AccountController) Activate(ctx echo.Context) error
Activate 用户激活
func (AccountController) ChangeAvatar ¶
func (AccountController) ChangeAvatar(ctx echo.Context) error
ChangeAvatar 更换头像
func (AccountController) ChangePwd ¶
func (AccountController) ChangePwd(ctx echo.Context) error
ChangePwd 修改密码
func (AccountController) Edit ¶
func (a AccountController) Edit(ctx echo.Context) error
Edit 用户编辑个人信息
func (AccountController) ForgetPasswd ¶
func (AccountController) ForgetPasswd(ctx echo.Context) error
ForgetPasswd 忘记密码
func (AccountController) RegisterRoute ¶
func (a AccountController) RegisterRoute(g *echo.Group)
RegisterRoute 注册路由 .
func (AccountController) ResetPasswd ¶
func (AccountController) ResetPasswd(ctx echo.Context) error
ResetPasswd 重置密码
func (AccountController) SendActivateEmail ¶
func (a AccountController) SendActivateEmail(ctx echo.Context) error
SendActivateEmail 发送注册激活邮件
type ArticleController ¶
type ArticleController struct{}
func (ArticleController) Create ¶
func (ArticleController) Create(ctx echo.Context) error
Create 发布新文章
func (ArticleController) Detail ¶
func (ArticleController) Detail(ctx echo.Context) error
Detail 文章详细页
func (ArticleController) Modify ¶
func (ArticleController) Modify(ctx echo.Context) error
Modify 修改文章
func (ArticleController) ReadList ¶
func (ArticleController) ReadList(ctx echo.Context) error
ReadList 网友文章列表页
func (ArticleController) RegisterRoute ¶
func (a ArticleController) RegisterRoute(g *echo.Group)
注册路由
type BookController ¶
type BookController struct{}
type CaptchaController ¶
type CaptchaController struct{}
验证码
func (CaptchaController) RegisterRoute ¶
func (c CaptchaController) RegisterRoute(g *echo.Group)
type CommentController ¶
type CommentController struct{}
func (CommentController) ArticleDetail ¶
func (c CommentController) ArticleDetail(ctx echo.Context) error
func (CommentController) AtUsers ¶
func (CommentController) AtUsers(ctx echo.Context) error
AtUsers 评论或回复 @ 某人 suggest
func (CommentController) CommentList ¶
func (CommentController) CommentList(ctx echo.Context) error
CommentList 获取某对象的评论信息
func (CommentController) Create ¶
func (CommentController) Create(ctx echo.Context) error
Create 评论(或回复)
func (CommentController) RegisterRoute ¶
func (c CommentController) RegisterRoute(g *echo.Group)
func (CommentController) TopicDetail ¶
func (c CommentController) TopicDetail(ctx echo.Context) error
type DownloadController ¶
type DownloadController struct{}
func (DownloadController) FetchGoInstallPackage ¶
func (d DownloadController) FetchGoInstallPackage(ctx echo.Context) error
func (DownloadController) GoDl ¶
func (DownloadController) GoDl(ctx echo.Context) error
GoDl Go 语言安装包下载
func (DownloadController) RegisterRoute ¶
func (d DownloadController) RegisterRoute(g *echo.Group)
注册路由
type FavoriteController ¶
type FavoriteController struct{}
func (FavoriteController) Create ¶
func (FavoriteController) Create(ctx echo.Context) error
Create 收藏(取消收藏)
func (FavoriteController) ReadList ¶
func (FavoriteController) ReadList(ctx echo.Context) error
ReadList 我的(某人的)收藏
func (FavoriteController) RegisterRoute ¶
func (f FavoriteController) RegisterRoute(g *echo.Group)
注册路由
type FeedController ¶
type FeedController struct{}
type GCTTController ¶
type GCTTController struct{}
type GiftController ¶
type GiftController struct{}
type ImageController ¶
type ImageController struct{}
图片处理
func (ImageController) PasteUpload ¶
func (i ImageController) PasteUpload(ctx echo.Context) error
PasteUpload jquery 粘贴上传图片
func (ImageController) QuickUpload ¶
func (i ImageController) QuickUpload(ctx echo.Context) error
QuickUpload CKEditor 编辑器,上传图片,支持粘贴方式上传
func (ImageController) RegisterRoute ¶
func (i ImageController) RegisterRoute(eg *echo.Group)
type IndexController ¶
type IndexController struct{}
func (IndexController) Link ¶
func (IndexController) Link(ctx echo.Context) error
Link 用于重定向外部链接,比如广告链接
func (IndexController) Markdown ¶
func (IndexController) Markdown(ctx echo.Context) error
Markdown .
type InstallController ¶
type InstallController struct{}
InstallController .
func (InstallController) DoInstall ¶
func (i InstallController) DoInstall(ctx echo.Context) error
DoInstall 执行安装,包括站点简单配置,安装数据库(创建数据库、表,填充基本数据)等
func (InstallController) RegisterRoute ¶
func (i InstallController) RegisterRoute(g *echo.Group)
RegisterRoute 注册路由
func (InstallController) SetupConfig ¶
func (i InstallController) SetupConfig(ctx echo.Context) error
SetupConfig .
func (InstallController) SetupOptions ¶
func (InstallController) SetupOptions(ctx echo.Context) error
type LikeController ¶
type LikeController struct{}
type LinkController ¶
type LinkController struct{}
type MessageController ¶
type MessageController struct{}
func (MessageController) RegisterRoute ¶
func (m MessageController) RegisterRoute(g *echo.Group)
注册路由
type MissionController ¶
type MissionController struct{}
func (MissionController) DailyRedeem ¶
func (MissionController) DailyRedeem(ctx echo.Context) error
func (MissionController) RegisterRoute ¶
func (m MissionController) RegisterRoute(g *echo.Group)
注册路由
type OAuthController ¶
type OAuthController struct{}
func (OAuthController) GithubCallback ¶
func (OAuthController) GithubCallback(ctx echo.Context) error
func (OAuthController) GithubLogin ¶
func (OAuthController) GithubLogin(ctx echo.Context) error
type ProjectController ¶
type ProjectController struct{}
func (ProjectController) CheckExist ¶
func (ProjectController) CheckExist(ctx echo.Context) error
CheckExist 检测 uri 对应的项目是否存在(验证,true表示不存在;false表示存在)
func (ProjectController) Create ¶
func (ProjectController) Create(ctx echo.Context) error
Create 新建项目
func (ProjectController) Detail ¶
func (ProjectController) Detail(ctx echo.Context) error
Detail 项目详情
func (ProjectController) Modify ¶
func (ProjectController) Modify(ctx echo.Context) error
Modify 修改项目
func (ProjectController) ReadList ¶
func (ProjectController) ReadList(ctx echo.Context) error
ReadList 开源项目列表页
func (ProjectController) RegisterRoute ¶
func (p ProjectController) RegisterRoute(g *echo.Group)
注册路由
type ReadingController ¶
type ReadingController struct{}
func (ReadingController) IReading ¶
func (ReadingController) IReading(ctx echo.Context) error
IReading 点击 【我要晨读】,记录点击数,跳转
func (ReadingController) ReadingList ¶
func (ReadingController) ReadingList(ctx echo.Context) error
ReadingList 晨读列表页
func (ReadingController) RegisterRoute ¶
func (r ReadingController) RegisterRoute(g *echo.Group)
注册路由
type ResourceController ¶
type ResourceController struct{}
func (ResourceController) Create ¶
func (ResourceController) Create(ctx echo.Context) error
Create 发布新资源
func (ResourceController) Detail ¶
func (ResourceController) Detail(ctx echo.Context) error
Detail 某个资源详细页
func (ResourceController) Modify ¶
func (ResourceController) Modify(ctx echo.Context) error
Modify 修改資源
func (ResourceController) ReadCatResources ¶
func (ResourceController) ReadCatResources(ctx echo.Context) error
ReadCatResources 某个分类的资源列表
func (ResourceController) ReadList ¶
func (ResourceController) ReadList(ctx echo.Context) error
ReadList 资源索引页
func (ResourceController) RegisterRoute ¶
func (r ResourceController) RegisterRoute(g *echo.Group)
注册路由
type SearchController ¶
type SearchController struct{}
type SidebarController ¶
type SidebarController struct{}
侧边栏的内容通过异步请求获取
func (SidebarController) ActiveUser ¶
func (SidebarController) ActiveUser(ctx echo.Context) error
ActiveUser 活跃会员
func (SidebarController) FriendLinks ¶
func (SidebarController) FriendLinks(ctx echo.Context) error
FriendLinks 友情链接
func (SidebarController) HotNodes ¶
func (SidebarController) HotNodes(ctx echo.Context) error
HotNodes 社区热门节点
func (SidebarController) NewestUser ¶
func (SidebarController) NewestUser(ctx echo.Context) error
NewestUser 新加入会员
func (SidebarController) OtherTopics ¶
func (SidebarController) OtherTopics(ctx echo.Context) error
OtherTopics 某节点下其他帖子
func (SidebarController) RecentArticle ¶
func (SidebarController) RecentArticle(ctx echo.Context) error
RecentArticle 最新博文
func (SidebarController) RecentComment ¶
func (SidebarController) RecentComment(ctx echo.Context) error
RecentComment 最新评论
func (SidebarController) RecentDynamic ¶
func (SidebarController) RecentDynamic(ctx echo.Context) error
RecentDynamic 社区最新公告或go最新动态
func (SidebarController) RecentProject ¶
func (SidebarController) RecentProject(ctx echo.Context) error
RecentProject 最新开源项目
func (SidebarController) RecentReading ¶
func (SidebarController) RecentReading(ctx echo.Context) error
RecentReading 技术晨读
func (SidebarController) RecentResource ¶
func (SidebarController) RecentResource(ctx echo.Context) error
RecentResource 最新资源
func (SidebarController) RecentTopic ¶
func (SidebarController) RecentTopic(ctx echo.Context) error
RecentTopic 最新帖子
func (SidebarController) RegisterRoute ¶
func (s SidebarController) RegisterRoute(g *echo.Group)
func (SidebarController) ViewRank ¶
func (SidebarController) ViewRank(ctx echo.Context) error
ViewRank 阅读排行榜
func (SidebarController) WebsiteStat ¶
func (SidebarController) WebsiteStat(ctx echo.Context) error
WebsiteStat 网站统计信息
type SubjectController ¶
type SubjectController struct{}
func (SubjectController) Contribute ¶
func (s SubjectController) Contribute(ctx echo.Context) error
Contribute 投稿
func (SubjectController) Create ¶
func (SubjectController) Create(ctx echo.Context) error
Create 新建专栏
func (SubjectController) Modify ¶
func (SubjectController) Modify(ctx echo.Context) error
Modify 修改专栏
func (SubjectController) MyArticles ¶
func (s SubjectController) MyArticles(ctx echo.Context) error
func (SubjectController) RegisterRoute ¶
func (s SubjectController) RegisterRoute(g *echo.Group)
注册路由
func (SubjectController) RemoveContribute ¶
func (s SubjectController) RemoveContribute(ctx echo.Context) error
RemoveContribute 删除投稿
type TopController ¶
type TopController struct{}
TopController .
func (TopController) RegisterRoute ¶
func (t TopController) RegisterRoute(g *echo.Group)
RegisterRoute 注册路由
type TopicController ¶
type TopicController struct{}
func (TopicController) Detail ¶
func (TopicController) Detail(ctx echo.Context) error
Detail 社区主题详细页
func (TopicController) GoNodeTopics ¶
func (TopicController) GoNodeTopics(ctx echo.Context) error
GoNodeTopics 某节点下的主题列表,uri: /go/golang
func (TopicController) NodeTopics ¶
func (TopicController) NodeTopics(ctx echo.Context) error
NodeTopics 某节点下的主题列表
func (TopicController) TopicsLast ¶
func (t TopicController) TopicsLast(ctx echo.Context) error
func (TopicController) TopicsNoReply ¶
func (t TopicController) TopicsNoReply(ctx echo.Context) error
type UserController ¶
type UserController struct{}
func (UserController) EmailUnsub ¶
func (UserController) EmailUnsub(ctx echo.Context) error
EmailUnsub 邮件订阅/退订页面
type UserRichController ¶
type UserRichController struct{}
func (UserRichController) RegisterRoute ¶
func (u UserRichController) RegisterRoute(g *echo.Group)
注册路由
type WebsocketController ¶
type WebsocketController struct {
ServerId uint32
}
func (*WebsocketController) RegisterRoute ¶
func (w *WebsocketController) RegisterRoute(g *echo.Group)
func (*WebsocketController) Ws ¶
func (w *WebsocketController) Ws(wsConn *websocket.Conn)
websocket,统计在线用户数 uri: /ws
type WechatController ¶
type WechatController struct{}
type WideController ¶
type WideController struct{}
WideController .
func (WideController) Playground ¶
func (WideController) Playground(ctx echo.Context) error
Playground Wide 的内嵌 iframe 的 playground
func (WideController) RegisterRoute ¶
func (w WideController) RegisterRoute(g *echo.Group)
RegisterRoute 注册路由
type WikiController ¶
type WikiController struct{}
func (WikiController) Modify ¶
func (WikiController) Modify(ctx echo.Context) error
Modify 修改 Wiki 页
Source Files ¶
- account.go
- article.go
- balance.go
- base.go
- book.go
- captcha.go
- comment.go
- download.go
- favorite.go
- feed.go
- gctt.go
- gift.go
- image.go
- index.go
- install.go
- install_unix.go
- like.go
- link.go
- message.go
- mission.go
- oauth.go
- project.go
- reading.go
- resource.go
- routes.go
- search.go
- sidebar.go
- subject.go
- top.go
- topic.go
- user.go
- websocket.go
- wechat.go
- wide.go
- wiki.go