config

package
v0.0.0-...-3399a5c Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectionString

func GetConnectionString() string

GetConnectionString get db connection string

func GetDBName

func GetDBName() string

GetDBName db name

func GetPort

func GetPort() string

GetPort port

func GetSecret

func GetSecret() string

GetSecret get secret key for auth

func GetUserPasswordDB

func GetUserPasswordDB() string

GetUserPasswordDB user password for login

Types

type Config

type Config struct {
	Secret           string `json:"secret"`
	ConnectionString string `json:"connection_string"`
	UserPasswordDB   string `json:"user_password_db"`
	DBName           string `json:"dbname"`
	Port             string `json:"port"`
}

Config struct for config.json

func LoadConfiguration

func LoadConfiguration() Config

LoadConfiguration load from config.json

Jump to

Keyboard shortcuts

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