Documentation
¶
Index ¶
- func AdminSetup(s *LoggingServeMux)
- func GatewaySetup(s *LoggingServeMux)
- func MchSetup(s *LoggingServeMux)
- func PrintTitle(w http.ResponseWriter, r *http.Request)
- func ServerSetup(s *LoggingServeMux)
- func ThreadSetup(s *LoggingServeMux)
- type DeleteRecord
- type GatewayLink
- type Htemplate
- type Item
- type ListItem
- type LoggingServeMux
- type Menubar
- type RSS
- type Ttemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatewaySetup ¶
func GatewaySetup(s *LoggingServeMux)
GatewaySetup setups handlers for gateway.cgi
func PrintTitle ¶
func PrintTitle(w http.ResponseWriter, r *http.Request)
PrintTitle renders list of newer thread in the disk for the top page
Types ¶
type DeleteRecord ¶
type DeleteRecord struct { Message message AdminCGI string Datfile string Records []*record.Record Sid string }
DeleteRecord is for renderring confirmation to a delete record.
type GatewayLink ¶
GatewayLink is a struct for gateway_link.txt
type Htemplate ¶ added in v0.1.0
type Htemplate struct {
*htmlTemplate.Template
}
Htemplate is for rendering html stuff.
func (*Htemplate) ExecuteTemplate ¶ added in v0.1.0
ExecuteTemplate executes template and returns it as string.
type Item ¶
type Item struct { Title string Link string Description string Creator string Date int64 Content string Subject []string // contains filtered or unexported fields }
Item represents RSS contents.
type ListItem ¶
type ListItem struct { Cache *thread.Cache CacheSize int64 Title string Tags tag.Slice Target string Remove bool IsAdmin bool StrOpts string GatewayCGI string ThreadURL string Message message // contains filtered or unexported fields }
ListItem is for list_item.txt
type LoggingServeMux ¶
LoggingServeMux is ServerMux with logging
func NewLoggingServeMux ¶
func NewLoggingServeMux() *LoggingServeMux
NewLoggingServeMux returns loggingServeMux obj.
func (*LoggingServeMux) RegistCompressHandler ¶
func (s *LoggingServeMux) RegistCompressHandler(path string, fn func(w http.ResponseWriter, r *http.Request))
RegistCompressHandler registers fn to s after registering CompressHandler with path.
func (*LoggingServeMux) RegisterPprof ¶
func (s *LoggingServeMux) RegisterPprof()
RegisterPprof registers pprof relates funcs to s.
func (*LoggingServeMux) ServeHTTP ¶
func (s *LoggingServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP just calles http.ServeMux.ServeHTTP after logging.
type Menubar ¶
type Menubar struct { GatewayLink GatewayCGI string Message message ID string RSS string IsAdmin bool IsFriend bool }
Menubar is var set for menubar.txt
type RSS ¶
type RSS struct { Encode string Lang string Title string Link string Description string Feeds []*Item URI string XSL string // contains filtered or unexported fields }
RSS represents RSS info.
type Ttemplate ¶ added in v0.1.0
type Ttemplate struct {
*textTemplate.Template
}
Ttemplate is for rendering text rss template.