settings

package
v1.19.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfiguration

type IConfiguration interface {
	IsDockerized() bool
	IsTestEnvironment() bool
	IsDevelopmentEnvironment() bool
	IsStagingEnvironment() bool
	IsProductionEnvironment() bool
	IsTrafficRecordEnabled() bool
	IsRequestLogEnabled() bool
	GetAllowedOrigins() []string
	GetEnvironment() string
	GetServerConfiguration() IServerConfiguration
	GetInfluxConfiguration() IInfluxConfiguration
	GetPostgreSQLConfiguration() IPostgreSQLConfiguration
	GetMastodonApplication(string) IMastodonApplication
	GetNotificationConfiguration() INotificationConfiguration
	GetPorts() (int, int, int)
}

type IInfluxConfiguration

type IInfluxConfiguration interface {
	IsEnabled() bool
	GetAddress() string
	GetDatabase() string
	GetUsername() string
	GetPassword() string
	GetReplicas() []string
}

type IMastodonApplication added in v1.17.8

type IMastodonApplication interface {
	GetName() string
	GetServer() string
	GetClientID() string
	GetClientSecret() string
	GetToken() string
}

type INotificationConfiguration added in v1.18.7

type INotificationConfiguration interface {
	GetSlackWebhook() string
	GetTelegramBotToken() string
	GetTelegramChatId() string
}

type IPortConfiguration

type IPortConfiguration interface {
	GetActive() int
	GetPassive() int
	GetDiagnostics() int
}

type IPostgreSQLConfiguration added in v1.7.0

type IPostgreSQLConfiguration interface {
	GetHost() string
	SetHost(string)
	GetPort() string
	SetPort(string)
	GetDatabase() string
	SetDatabase(string)
	GetUsername() string
	SetUsername(string)
	GetPassword() string
	SetPassword(string)
}

type IServerConfiguration

type IServerConfiguration interface {
	GetFQDN() string
	GetProtocol() string
	GetPortConfiguration() IPortConfiguration
	GetTLSConfiguration() ITLSConfiguration
	GetBuildNumber() int32
	SetBuildNumber(int32)
	GetJwtTokenKey() string
	GetJwtTokenExpiration() string
	GetHashKey() string
	GetBlockKey() string
	GetUploadPath() string
	GetMaxUploadSize() int64
	GetReadTimeout() time.Duration
	GetWriteTimeout() time.Duration
	GetCORSProxy() string
	IsCompressionDisabled() bool
}

type ITLSConfiguration

type ITLSConfiguration interface {
	IsEnabled() bool
	GetKeyFile() string
	GetCertFile() string
}

Jump to

Keyboard shortcuts

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