config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB     Postgres
	Server Server `mapstructure:"server"`
}

func New

func New(folder, filename string) (*Config, error)

type Postgres

type Postgres struct {
	Host     string
	Port     int
	UserName string
	Password string
	SSLMode  string
	DBName   string
}

type Server

type Server struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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