config

package
v0.0.0-...-63fb21e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemUser = "SYSTEM"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	AdminUser       string
	AdminPassword   string
	BindingPort     string
	BindingIP       string
	Logger          string
	TokenExpiration int
	TokenKeyLength  int
	PasswordCost    int
	ImportRepoURL   string
	ImportLocalPath string
	ImportOnStartup bool
	// ExportRepoURL   string
	ExportLocalPath string
	GitToken        string
}

type BrokerConfig

type BrokerConfig struct {
	Channel          string
	BrokerName       string
	ConnectionString string
	Username         string
	Password         string
}

type Configuration

type Configuration struct {
	App    AppConfig
	DB     DBConfig
	Broker BrokerConfig
}

func Load

func Load() (Configuration, error)

type DBConfig

type DBConfig struct {
	DBUser     string
	DBHost     string
	DBPort     string
	DBPassword string
	DBDatabase string
	DBDialect  string
}

Jump to

Keyboard shortcuts

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