yatwiki/ServerOptions.go
2017-07-09 11:13:36 +12:00

32 lines
675 B
Go

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,
}
}