config

package
v0.0.0-...-782ee41 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 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 App

type App struct {
	Key  string `mapstructure:"Key"`
	Host string `mapstructure:"Host"`
	Port string `mapstructure:"Port"`
}

type Config

type Config struct {
	App      App      `mapstructure:"App"`
	Postgres Postgres `mapstructure:"Postgres"`
}

func SetupConfig

func SetupConfig() (conf Config)

type Postgres

type Postgres struct {
	Host     string `mapstructure:"Host"`
	Port     string `mapstructure:"Port"`
	User     string `mapstructure:"User"`
	Password string `mapstructure:"Password"`
	Database string `mapstructure:"Database"`
}

Jump to

Keyboard shortcuts

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