Documentation ¶
Index ¶
- Constants
- func App() *section.App
- func Caches(name string) *section.Cache
- func Config(opts ...Option) *section.Config
- func Databases(name string) *section.Database
- func Get(path ...string) reader.Value
- func Load(source ...source.Source) error
- func LoadFile(path string) error
- func Map() map[string]interface{}
- func Server() *section.Server
- type Option
Constants ¶
View Source
const ( ConfigFile = "./config.yml" // App DefaultTitle = "teamlint" DefaultCopyright = "teamlint.com" DefaultTimeFormat = "2006-01-02 15:04:05" DefaultCharset = "UTF-8" // Server DefaultServerHTTPAddr = ":1234" DefaultServerReadTimeout = "5s" DefaultServerWriteTimeout = "10s" DefaultServerIdleTimeout = "15s" // Databases DefaultDatabaseDriverName = "postgres" DefaultDatabaseConnString = "postgres://postgres:postgres@localhost/ardan?sslmode=disable" DefaultDatabaseConnMaxLifetime = "3m" DefaultDatabaseMaxOpenConns = 300 DefaultDatabaseMaxIdleConns = 10 DefaultDatabaseLog = false )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.