config

package
v0.0.0-...-990eb5e Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFromFile

func LoadConfigFromFile(path string) (*viper.Viper, error)

Types

type Config

type Config struct {
	Server   ServerConfig
	Email    EmailConfig
	Database DatabaseConfig
}

func ParseConfig

func ParseConfig(v *viper.Viper) (*Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	Database string
	SSLMode  string
	PgDriver string
}

type EmailConfig

type EmailConfig struct {
	APIKey                         string
	FromEmail                      string
	SignupVerificationTemplateName string
}

type ServerConfig

type ServerConfig struct {
	Host string
	Port string
}

Jump to

Keyboard shortcuts

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