config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: MIT Imports: 3 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Server   ServerConfig
	Database DatabaseConfig
}

Configuration - server and db configuration variables

func Config

func Config() Configuration

Config - load the configurations from .env

type DatabaseConfig

type DatabaseConfig struct {
	DbDriver string
	DbUser   string
	DbPass   string
	DbName   string
	DbHost   string
	DbPort   string
}

DatabaseConfig - database variables

type ServerConfig

type ServerConfig struct {
	ServerPort string
	ServerEnv  string
	ServerJWT  struct {
		Key    string
		Expire int
	}
}

ServerConfig - public port of server

Jump to

Keyboard shortcuts

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