config

package
v0.0.0-...-538496c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppName

func GetAppName() string

func GetConfLoader

func GetConfLoader(appName string) *onion.Onion

func GetEnvVarLayer

func GetEnvVarLayer(prefix string) onion.Layer

func SetAppName

func SetAppName(name string)

Types

type Config

type Config struct {
	APIPort        int
	NATSUrl        string
	MongoUrl       string
	MongoDatabase  string
	Host           string
	Port           string
	LokiUrl        string
	LogLevel       string
	Whitelist      bool
	PrivateKeyPath string
	PublicKeyPath  string

	InternalCatalogAPI    string
	InternalSharedAPI     string
	InternalWorkflowAPI   string
	InternalWorkspaceAPI  string
	InternalPeerAPI       string
	InternalDatacenterAPI string
	InternalSchedulerAPI  string
}

func GetConfig

func GetConfig() *Config

func SetConfig

func SetConfig(mongoUrl string, database string, natsUrl string, lokiUrl string, logLevel string, port int,
	pkPath, ppPath,
	internalCatalogAPI, internalSharedAPI, internalWorkflowAPI, internalWorkspaceAPI,
	internalPeerAPI, internalDatacenterAPI string, internalSchedulerAPI string) *Config

func (Config) GetDatabase

func (c Config) GetDatabase() string

func (Config) GetUrl

func (c Config) GetUrl() string

Jump to

Keyboard shortcuts

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