config

package
v3.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthUrl = asString("daemon.auth.url", "http://localhost:8080")
View Source
var BinariesFolder = asDataFolder("daemon.data.binaries", "binaries")
View Source
var CacheFolder = asDataFolder("daemon.data.cache", "cache")
View Source
var ClientId = asString("daemon.auth.clientId", "")
View Source
var ClientSecret = asString("daemon.auth.clientSecret", "")
View Source
var CompanyName = asString("panel.settings.companyName", "PufferPanel")
View Source
var ConsoleBuffer = asInt("daemon.console.buffer", 50)
View Source
var ConsoleForward = asBool("daemon.console.forward", false)
View Source
var CrashLimit = asInt("daemon.data.crashLimit", 3)
View Source
var CurseForgeKey = asString("daemon.curseforge.key", curseforgeKey)
View Source
var DaemonEnabled = asBool("daemon.enable", true)
View Source
var DataRootFolder = asString("daemon.data.root", "")
View Source
var DatabaseDialect = asString("panel.database.dialect", "sqlite3")
View Source
var DatabaseLoggingEnabled = asBool("panel.database.log", false)
View Source
var DatabaseUrl = asString("panel.database.url", "")
View Source
var DefaultTheme = asString("panel.settings.defaultTheme", "PufferPanel")
View Source
var EmailDomain = asString("panel.email.domain", "")
View Source
var EmailFrom = asString("panel.email.from", "")
View Source
var EmailHost = asString("panel.email.host", "")
View Source
var EmailKey = asString("panel.email.key", "")
View Source
var EmailPassword = asString("panel.email.password", "")
View Source
var EmailProvider = asString("panel.email.provider", "")
View Source
var EmailTemplateFolder = asString("panel.email.templateFolder", "")
View Source
var EmailUsername = asString("panel.email.username", "")
View Source
var LogsFolder = asString("logs", "logs")
View Source
var MasterUrl = asString("panel.settings.masterUrl", "http://localhost:8080")
View Source
var PanelEnabled = asBool("panel.enable", true)
View Source
var PrivateKey = asString("panel.token", "")
View Source
var RegistrationEnabled = asBool("panel.registrationEnabled", true)
View Source
var SecurityForceOpenat = asBool("security.forceOpenat", false)
View Source
var SecurityForceOpenat2 = asBool("security.forceOpenat2", false)
View Source
var ServersFolder = asDataFolder("daemon.data.servers", "servers")
View Source
var SessionKey = asString("panel.sessionKey", "")
View Source
var SftpHost = asString("daemon.sftp.host", "0.0.0.0:5657")
View Source
var SftpKey = asDataFolder("daemon.sftp.key", "sftp.key")
View Source
var ThemeSettings = asString("panel.settings.themeSettings", "{}")
View Source
var TokenPublicUrl = asString("token.public", "")
View Source
var WebHost = asString("web.host", "0.0.0.0:8080")
View Source
var WebRoot = asString("panel.web.files", "www")

Functions

func LoadConfigFile

func LoadConfigFile(configFile string) error

Types

type BoolEntry

type BoolEntry struct {
	// contains filtered or unexported fields
}

func (BoolEntry) Key

func (se BoolEntry) Key() string

func (BoolEntry) Set

func (se BoolEntry) Set(value T, save bool) error

func (BoolEntry) Value

func (se BoolEntry) Value() bool

type DataFolder

type DataFolder struct {
	StringEntry
}

func (DataFolder) Key

func (se DataFolder) Key() string

func (DataFolder) Set

func (se DataFolder) Set(value T, save bool) error

func (DataFolder) Value

func (se DataFolder) Value() string

type Int64Entry

type Int64Entry struct {
	// contains filtered or unexported fields
}

func (Int64Entry) Key

func (se Int64Entry) Key() string

func (Int64Entry) Set

func (se Int64Entry) Set(value T, save bool) error

func (Int64Entry) Value

func (se Int64Entry) Value() int64

type IntEntry

type IntEntry struct {
	// contains filtered or unexported fields
}

func (IntEntry) Key

func (se IntEntry) Key() string

func (IntEntry) Set

func (se IntEntry) Set(value T, save bool) error

func (IntEntry) Value

func (se IntEntry) Value() int

type StringEntry

type StringEntry struct {
	// contains filtered or unexported fields
}

func (StringEntry) Key

func (se StringEntry) Key() string

func (StringEntry) Set

func (se StringEntry) Set(value T, save bool) error

func (StringEntry) Value

func (se StringEntry) Value() string

type ValueType

type ValueType interface {
	int | int64 | bool | string
}

Jump to

Keyboard shortcuts

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