yatwiki/ServerOptions.go

32 lines
675 B
Go
Raw Normal View History

2017-07-08 23:13:36 +00:00
package yatwiki3
import (
"time"
)
type ServerOptions struct {
PageTitle string
ExpectBaseURL string
DefaultPage string
Timezone string
DateFormat string
DBFilePath string
AllowDBDownload bool
RecentChanges int
GzipCompressionLevel int
}
func DefaultOptions() *ServerOptions {
return &ServerOptions{
PageTitle: "YATWiki",
ExpectBaseURL: "/",
DefaultPage: "home",
Timezone: "UTC",
DateFormat: time.RFC822Z,
DBFilePath: "wiki.db",
AllowDBDownload: true,
RecentChanges: 20,
GzipCompressionLevel: 9,
}
}