Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SrirachaVersion = "DEV"
Functions ¶
func FormatValue ¶
func FormatValue(v interface{}) interface{}
func RegisterPlugin ¶
func RegisterPlugin(plugin any)
RegisterPlugin registers a Sriracha plugin to receive any subscribed events.
Types ¶
type NewsOption ¶
type NewsOption int
const ( NewsDisable NewsOption = 0 NewsWriteToNews NewsOption = 1 NewsWriteToIndex NewsOption = 2 )
type ServerOptions ¶
type ServerOptions struct {
SiteName string
SiteHome string
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
FuncMaps map[string]template.FuncMap
}
func (*ServerOptions) DefaultLocaleName ¶
func (opt *ServerOptions) DefaultLocaleName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.