Documentation
¶
Overview ¶
Package config implements a configuration for Wraith game engine and web server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Debug bool App struct { Data string // path to data files Assets string // path to public assets Root string Templates string // path to templates TimestampFormat string } Auth struct { Providers string // comma separated list of authentication providers } Cookies struct { HttpOnly bool Secure bool } DB DBConfig FileName string Home string Server struct { Scheme string Host string MaxHeaderBytes int Port string Timeout struct { Idle time.Duration Read time.Duration Write time.Duration } Key string Salt string } }
Config defines configuration information for the application.
func Default ¶
Default returns a default configuration. These are the values without loading the environment, configuration file, or command line.
Click to show internal directories.
Click to hide internal directories.