config

package
v0.0.0-...-1867fd4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT 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 {
	Port       int    `yaml:"PORT"`
	DSN        string `yaml:"DSN"`
	StripeKey  string `yaml:"STRIPE_KEY"`
	StripeHook string `yaml:"STRIPE_HOOK"`

	Cache struct {
		Address  string `yaml:"ADDRESS"`
		Password string `yaml:"Password"`
		DB       int    `yaml:"DB"`
	} `yaml:"CACHE"`

	ReportMail struct {
		Address string `yaml:"ADDRESS"`
		Success bool   `yaml:"SUCCESS"`
		Error   bool   `yaml:"ERROR"`
	} `yaml:"REPORT"`

	Mail struct {
		User     string `yaml:"USER"`
		Password string `yaml:"PASSWORD"`
		Host     string `yaml:"HOST"`
		Port     int    `yaml:"PORT"`
	} `yaml:"MAIL"`
}
var Data Config

func Load

func Load() Config

Jump to

Keyboard shortcuts

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