Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
General struct {
GuestPosting bool
AutoRegistration bool
}
Prim struct {
// Assets for Prim
Css string
Js string
}
CloudFlare struct {
// CloudFlare API settings
Key string
Email string
}
Akismet struct {
// Akismet settings
Key string
Host string
}
StopForumSpam struct {
// Stop Forum Spam settings
Confidence float64
}
Amazon struct {
// Settings for Amazon S3
Region string
Bucket string
Id string
Key string
}
Limits struct {
// Image settings
ImageMinWidth int
ImageMinHeight int
ImageMaxWidth int
ImageMaxHeight int
ImageMaxSize int
// avatar settings
AvatarMinWidth int
AvatarMinHeight int
AvatarMaxWidth int
AvatarMaxHeight int
AvatarMaxSize int
// webm settings
WebmMaxLength int
// Max posts in a thread
PostsMax uint
// Lengths for posting
CommentMaxLength int
CommentMinLength int
TitleMaxLength int
TitleMinLength int
NameMaxLength int
NameMinLength int
TagMaxLength int
TagMinLength int
PasswordMaxLength int
PasswordMinLength int
// Max thumbnail sizes
ThumbnailMaxWidth int
ThumbnailMaxHeight int
// Set default posts per page
PostsPerPage uint
// Set default threads per index page
ThreadsPerPage uint
// Add one to number because first post is included
PostsPerThread uint
// Max request parameter input size
ParamMaxSize uint
}
}
var Settings *Config
Click to show internal directories.
Click to hide internal directories.