settings

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 0 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
	GetEnvironment() string
	GetServerConfiguration() IServerConfiguration
	GetInfluxConfiguration() IInfluxConfiguration
	GetPostgreSQLConfiguration() IPostgreSQLConfiguration
	GetPorts() (int, int, int)
}

type IInfluxConfiguration

type IInfluxConfiguration interface {
	IsEnabled() bool
	GetAddress() string
	GetDatabase() string
	GetUsername() string
	GetPassword() string
	GetReplicas() []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)
	GetHashKey() string
	GetBlockKey() string
}

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