config

package
v0.0.0-...-d4b65f6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	UseCache           bool
	TemplateCache      map[string]*template.Template
	InfoLog            *log.Logger
	InProduction       bool
	ErrorLog           *log.Logger
	UserLogin          uuid.UUID // This field can hold a UUID value
	ServerEmail        string
	PostLen            int //this parameter limits post and topic size
	CategoryLen        int //this parameter limits category size
	FileSize           int64
	GamesList          (map[string]string)
	LongestSingleWord  string
	NameMinLen         int
	NameMaxLen         int
	PasswordMinLen     int
	PasswordMaxLen     int
	MinSubjectLen      int
	MaxSubjectLen      int
	MinCategoryLen     int
	MaxCategoryLen     int
	GitHubClientID     string
	GitHubClientSecret string
	GitHubRedirectURL  string

	GoogleClientID     string
	GoogleClientSecret string
	GoogleRedirectURL  string

	ModeratorPass string //added Moder pass to app config
}

AppConfig holds the app config

Jump to

Keyboard shortcuts

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