config

package
v0.0.0-...-99248c7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 4 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 {
	Postgres Postgres `mapstructure:"postgres"`
	SMTP     SMTP     `mapstructure:"smtp"`
}

func ReadConfigFile

func ReadConfigFile() Config

type Postgres

type Postgres struct {
	Url string `mapstructure:"url"`
}

type SMTP

type SMTP struct {
	Host            string `mapstructure:"host"`
	Port            string `mapstructure:"port"`
	From            string `mapstructure:"from"`
	User            string `mapstructure:"user"`
	Password        string `mapstructure:"password"`
	ConfirmTemplate string `mapstructure:"confirm-template"`
}

Jump to

Keyboard shortcuts

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