config

package
v0.0.0-...-8438342 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_VERSION = "APP_VERSION"

	ENVIRONMENT   = "ENVIRONMENT"
	SERVER_PORT   = "SERVER_PORT"
	CLIENT_DOMAIN = "CLIENT_DOMAIN"

	AUTH_SERVICE_URL      = "AUTH_SERVICE_URL"
	SCHEDULER_SERVICE_URL = "SCHEDULER_SERVICE_URL"
	REPORT_SERVICE_URL    = "REPORT_SERVICE_URL"

	AUTH_PUBLIC_KEY_FILE = "AUTH_PUBLIC_KEY_FILE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppVersion  string
	Environment string

	ServerPort   string
	ClientDomain string

	AuthServiceURL      string
	SchedulerServiceURL string
	ReportServiceURL    string

	Logger_DisableCaller     bool
	Logger_DisableStacktrace bool
	Logger_Encoding          string
	Logger_Level             string
}

func InitConfig

func InitConfig() (*Config, error)

func (*Config) IsDevelopmentEnvironment

func (cfg *Config) IsDevelopmentEnvironment() bool

Jump to

Keyboard shortcuts

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