config

package
v0.0.0-...-625f0bf Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(config *Config) *sqlx.DB

Types

type Config

type Config struct {
	Database     DatabaseConfig
	Server       ServerConfig
	Jwt          JwtConfig
	Timezone     string
	StripeAPIKey string
}

func LoadConfig

func LoadConfig(params ...string) *Config

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	DbName   string
}

type JwtConfig

type JwtConfig struct {
	Secret string
}

type ServerConfig

type ServerConfig struct {
	Port int
}

Jump to

Keyboard shortcuts

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