Documentation
¶
Overview ¶
Package server is the Sriracha imageboard and forum server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SrirachaVersion = "DEV"
SrirachaVersion is the version of the software. In official releases, this variable is replaced during compilation with the version of the release.
Functions ¶
func FormatValue ¶
func FormatValue(v interface{}) interface{}
FormatValue formats a value as a human-readable string.
Types ¶
type NewsOption ¶
type NewsOption int
NewsOption represents a News setting option.
const ( NewsDisable NewsOption = 0 NewsWriteToNews NewsOption = 1 NewsWriteToIndex NewsOption = 2 )
News options.
type Server ¶
type Server struct {
Boards []*Board
// contains filtered or unexported fields
}
Server is the Sriracha imageboard and forum server.
type ServerOptions ¶
type ServerOptions struct {
SiteName string
SiteHome string
SiteIndex bool
News NewsOption
BoardIndex bool
CAPTCHA bool
Refresh int
Uploads []*UploadType
Embeds [][2]string
OekakiWidth int
OekakiHeight int
Overboard string
OverboardType BoardType
OverboardThreads int
OverboardReplies int
Identifiers bool
Locale string
Locales map[string]string
LocalesSorted []string
Access map[string]string
Banners map[int][]*Banner
Rules map[int][]template.HTML
Notifications bool
DevMode bool
FuncMaps map[string]template.FuncMap
}
ServerOptions represents server configuration options and related data.
func (*ServerOptions) DefaultLocaleName ¶
func (opt *ServerOptions) DefaultLocaleName() string
DefaultLocaleName returns the name of the configured default locale.
Source Files
¶
- plugin.go
- server.go
- server_account.go
- server_ban.go
- server_banner.go
- server_board.go
- server_captcha.go
- server_delete.go
- server_import.go
- server_keyword.go
- server_log.go
- server_mod.go
- server_news.go
- server_notification.go
- server_page.go
- server_plugin.go
- server_post.go
- server_preference.go
- server_report.go
- server_setting.go
- server_status.go
- server_subscribe.go
- template.go
Click to show internal directories.
Click to hide internal directories.