Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `env:"SERVER_PORT" envDefault:"8080"` // UseEmbed defines whether server should use embedded templates and static files. UseEmbed bool `env:"SERVER_USE_EMBED" envDefault:"true"` // SkipAuth disables auth. Works only in Debug mode! SkipAuth bool `env:"SERVER_SKIP_AUTH"` // Credentials is a list of pairs 'login:password' separated by comma. // Example: "login:password,user:qwerty" Credentials Credentials `env:"SERVER_CREDENTIALS"` EnableProfiling bool `env:"SERVER_ENABLE_PROFILING" envDefault:"false"` }
type Credentials ¶
func (*Credentials) UnmarshalText ¶
func (c *Credentials) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.