Documentation ¶ Index ¶ type Config func New(folder, filename string) (*Config, error) type Postgres Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { DB Postgres Server struct { Port int `mapstructure:"port"` } `mapstructure:"server"` Auth struct { TokenTTL time.Duration `mapstructure:"token_ttl"` } `mapstructure:"auth"` } func New ¶ func New(folder, filename string) (*Config, error) type Postgres ¶ type Postgres struct { Host string Port int Username string Name string SSLMode string Password string } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.