Documentation ¶
Index ¶
- Variables
- func AddHeaders(resp http.ResponseWriter)
- func GetAnnouncements(ctx *macaron.Context, logger *log.Logger)
- func GetStatusz(ctx *macaron.Context)
- func ServePage(ctx *macaron.Context)
- type Announcement
- type AnnouncementView
- type Category
- type Post
- type PostStream
- type Topic
- type TopicList
- type TopicResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var DistDir string
Functions ¶
func AddHeaders ¶
func AddHeaders(resp http.ResponseWriter)
func GetAnnouncements ¶
func GetStatusz ¶
func GetStatusz(ctx *macaron.Context)
Types ¶
type Announcement ¶
type AnnouncementView ¶
type AnnouncementView struct { First Announcement `json:"first"` Second Announcement `json:"second"` }
type PostStream ¶
type PostStream struct {
Posts []Post `json:"posts"`
}
type TopicList ¶
type TopicList struct {
Topics []Topic `json:"topics"`
}
func (*TopicList) GetRegularTopics ¶
type TopicResponse ¶
type TopicResponse struct {
PostStream PostStream `json:"post_stream"`
}
Click to show internal directories.
Click to hide internal directories.