env

package
v0.0.0-...-7f34883 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Get = func() *Configuration {
	if config == nil {
		config = load()
	}

	return config
}

Get returns the singleton instance of the Configuration. If the Configuration is not already loaded, it loads the configuration by calling the load function and stores it in the config variable.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ServerName  string `json:"serverName"`
	Port        int    `json:"port"`
	GqlPort     int    `json:"gqlPort"`
	PostgresURL string `json:"postgresUrl"`
}

Configuration properties

Jump to

Keyboard shortcuts

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