config

package
v0.0.0-...-0444a63 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Domain = Env(
		"DOMAIN",
	)
	Domainname = "https://" + Domain
)
View Source
var (
	NodeEndpoint      string
	WalletEndpoint    string
	Environment       string
	Port              int
	ProjectDir        = "./"
	EnvPath           = ProjectDir + ".env"
	DatabaseDir       string
	DeroAddress       *rpc.Address
	DeroAddressResult rpc.GetAddress_Result
	DEV_ADDRESS       = Env("DEV_ADDRESS")
	APP_NAME          = Env("DOMAIN")
)

Functions

func Env

func Env(key string) string

Config func to get env value from key

Types

type Server

type Server struct {
	Port           int
	Environment    string
	DatabasePath   string
	EnvPath        string
	NodeEndpoint   string
	WalletEndpoint string
}

Config struct to hold configuration parameters

func Initialize

func Initialize() Server

Jump to

Keyboard shortcuts

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