Documentation ¶
Index ¶
- func NewBenchmarkConfiguration() IConfiguration
- func NewConfiguration(path string, dockerized bool) (IConfiguration, error)
- func NewTestConfiguration() IConfiguration
- type Configuration
- func (configuration *Configuration) GetAllowedOrigins() []string
- func (configuration *Configuration) GetEnvironment() string
- func (configuration *Configuration) GetInfluxConfiguration() IInfluxConfiguration
- func (configuration *Configuration) GetPorts() (int, int, int)
- func (configuration *Configuration) GetPostgreSQLConfiguration() IPostgreSQLConfiguration
- func (configuration *Configuration) GetServerConfiguration() IServerConfiguration
- func (configuration *Configuration) IsDevelopmentEnvironment() bool
- func (configuration *Configuration) IsDockerized() bool
- func (configuration *Configuration) IsProductionEnvironment() bool
- func (configuration *Configuration) IsRequestLogEnabled() bool
- func (configuration *Configuration) IsStagingEnvironment() bool
- func (configuration *Configuration) IsTestEnvironment() bool
- func (configuration *Configuration) IsTrafficRecordEnabled() bool
- type Influx
- type Ports
- type PostgreSQL
- func (postgres *PostgreSQL) GetDatabase() string
- func (postgres *PostgreSQL) GetHost() string
- func (postgres *PostgreSQL) GetPassword() string
- func (postgres *PostgreSQL) GetPort() string
- func (postgres *PostgreSQL) GetUsername() string
- func (postgres *PostgreSQL) SetDatabase(database string)
- func (postgres *PostgreSQL) SetHost(host string)
- func (postgres *PostgreSQL) SetPassword(password string)
- func (postgres *PostgreSQL) SetPort(port string)
- func (postgres *PostgreSQL) SetUsername(username string)
- type Server
- func (server *Server) GetBlockKey() string
- func (server *Server) GetBuildNumber() int32
- func (server *Server) GetFQDN() string
- func (server *Server) GetHashKey() string
- func (server *Server) GetJwtTokenExpiration() string
- func (server *Server) GetJwtTokenKey() string
- func (server *Server) GetPortConfiguration() IPortConfiguration
- func (server *Server) GetProtocol() string
- func (server *Server) GetTLSConfiguration() ITLSConfiguration
- func (server *Server) SetBuildNumber(value int32)
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBenchmarkConfiguration ¶
func NewBenchmarkConfiguration() IConfiguration
func NewConfiguration ¶
func NewTestConfiguration ¶
func NewTestConfiguration() IConfiguration
Types ¶
type Configuration ¶
type Configuration struct { Dockerized bool Environment string `yaml:"environment"` TrafficRecord bool `yaml:"traffic_record"` RequestLog bool `yaml:"request_log"` AllowedOrigins []string `yaml:"allowed_origins"` Server *Server `yaml:"server"` Influx *Influx `yaml:"influx"` PostgreSQL *PostgreSQL `yaml:"postgres"` }
func (*Configuration) GetAllowedOrigins ¶ added in v1.9.3
func (configuration *Configuration) GetAllowedOrigins() []string
func (*Configuration) GetEnvironment ¶
func (configuration *Configuration) GetEnvironment() string
func (*Configuration) GetInfluxConfiguration ¶
func (configuration *Configuration) GetInfluxConfiguration() IInfluxConfiguration
func (*Configuration) GetPostgreSQLConfiguration ¶ added in v1.7.0
func (configuration *Configuration) GetPostgreSQLConfiguration() IPostgreSQLConfiguration
func (*Configuration) GetServerConfiguration ¶
func (configuration *Configuration) GetServerConfiguration() IServerConfiguration
func (*Configuration) IsDevelopmentEnvironment ¶
func (configuration *Configuration) IsDevelopmentEnvironment() bool
func (*Configuration) IsDockerized ¶
func (configuration *Configuration) IsDockerized() bool
func (*Configuration) IsProductionEnvironment ¶
func (configuration *Configuration) IsProductionEnvironment() bool
func (*Configuration) IsRequestLogEnabled ¶ added in v1.15.3
func (configuration *Configuration) IsRequestLogEnabled() bool
func (*Configuration) IsStagingEnvironment ¶
func (configuration *Configuration) IsStagingEnvironment() bool
func (*Configuration) IsTestEnvironment ¶
func (configuration *Configuration) IsTestEnvironment() bool
func (*Configuration) IsTrafficRecordEnabled ¶ added in v1.9.0
func (configuration *Configuration) IsTrafficRecordEnabled() bool
type Influx ¶
type Influx struct { Enabled bool `yaml:"enabled"` Address string `yaml:"address"` Database string `yaml:"database"` Username string `yaml:"username"` Password string `yaml:"password"` Replicas []string `yaml:"replicas"` }
func (*Influx) GetAddress ¶
func (*Influx) GetDatabase ¶
func (*Influx) GetPassword ¶
func (*Influx) GetReplicas ¶
func (*Influx) GetUsername ¶
type Ports ¶
type Ports struct { Active int `yaml:"active"` Passive int `yaml:"passive"` Diagnostics int `yaml:"diagnostics"` }
func (*Ports) GetDiagnostics ¶
func (*Ports) GetPassive ¶
type PostgreSQL ¶ added in v1.7.0
type PostgreSQL struct { Host string `yaml:"host"` Port string `yaml:"port"` Database string `yaml:"database"` Username string `yaml:"username"` Password string `yaml:"password"` }
func (*PostgreSQL) GetDatabase ¶ added in v1.7.0
func (postgres *PostgreSQL) GetDatabase() string
func (*PostgreSQL) GetHost ¶ added in v1.7.0
func (postgres *PostgreSQL) GetHost() string
func (*PostgreSQL) GetPassword ¶ added in v1.7.0
func (postgres *PostgreSQL) GetPassword() string
func (*PostgreSQL) GetPort ¶ added in v1.7.0
func (postgres *PostgreSQL) GetPort() string
func (*PostgreSQL) GetUsername ¶ added in v1.7.0
func (postgres *PostgreSQL) GetUsername() string
func (*PostgreSQL) SetDatabase ¶ added in v1.7.0
func (postgres *PostgreSQL) SetDatabase(database string)
func (*PostgreSQL) SetHost ¶ added in v1.7.0
func (postgres *PostgreSQL) SetHost(host string)
func (*PostgreSQL) SetPassword ¶ added in v1.7.0
func (postgres *PostgreSQL) SetPassword(password string)
func (*PostgreSQL) SetPort ¶ added in v1.7.0
func (postgres *PostgreSQL) SetPort(port string)
func (*PostgreSQL) SetUsername ¶ added in v1.7.0
func (postgres *PostgreSQL) SetUsername(username string)
type Server ¶
type Server struct { FQDN string `yaml:"fqdn"` Protocol string `yaml:"protocol"` Ports *Ports `yaml:"ports"` TLS *TLS `yaml:"tls"` BuildNumber int32 `yaml:"build_number"` JwtTokenKey string `yaml:"jwt_token_key"` JwtTokenExpiration string `yaml:"jwt_token_expiration"` HashKey string `yaml:"hash_key"` BlockKey string `yaml:"block_key"` }
func (*Server) GetBlockKey ¶
func (*Server) GetBuildNumber ¶
func (*Server) GetHashKey ¶
func (*Server) GetJwtTokenExpiration ¶ added in v1.8.7
func (*Server) GetJwtTokenKey ¶ added in v1.8.7
func (*Server) GetPortConfiguration ¶
func (server *Server) GetPortConfiguration() IPortConfiguration
func (*Server) GetProtocol ¶
func (*Server) GetTLSConfiguration ¶
func (server *Server) GetTLSConfiguration() ITLSConfiguration
func (*Server) SetBuildNumber ¶
Click to show internal directories.
Click to hide internal directories.