config

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2016 License: MIT Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabaseSettings

func GetDatabaseSettings()

Get limits that are in the database

Types

type Config

type Config struct {
	General struct {
		GuestPosting     bool
		AutoRegistration bool
	}

	Prim struct {
		Css string
		Js  string
	}

	Akismet struct {
		// Akismet settings
		Key  string
		Host string
	}

	StopForumSpam struct {
		// Stop Forum Spam settings
		Confidence float64
	}

	// settings for amazon s3
	Amazon struct {
		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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL