config

package
v0.0.0-...-ab4e8db Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertSMTP

type AlertSMTP struct {
	Server   string
	Port     int
	User     string
	Password string
}

type Config

type Config struct {
	Postgres Postgres
	AlertSMTP
	General General
}

func GetInstance

func GetInstance() *Config

This is the right way to create a singleton, source: https://refactoring.guru/design-patterns/singleton/go/example

type Cors

type Cors struct {
	Origins          []string
	Methods          []string
	Headers          []string
	AllowCredentials bool
}

type General

type General struct {
	EncryptionKey string
	Cors          Cors
}

type Postgres

type Postgres struct {
	Host     string
	Port     string
	User     string
	Database string
	Password string
}

Jump to

Keyboard shortcuts

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