Documentation ¶
Index ¶
- func NewBenchmarkConfiguration() IConfiguration
- func NewConfiguration(path string, dockerized bool) (IConfiguration, error)
- func NewTestConfiguration() IConfiguration
- type Client
- type Configuration
- func (configuration *Configuration) GetClientsConfiguration() []IClientConfiguration
- func (configuration *Configuration) GetEnvironment() string
- func (configuration *Configuration) GetInfluxConfiguration() IInfluxConfiguration
- func (configuration *Configuration) GetMySQLConfiguration() IMySqlConfiguration
- func (configuration *Configuration) GetPorts() (int, int, int)
- func (configuration *Configuration) GetServerConfiguration() IServerConfiguration
- func (configuration *Configuration) IsDevelopmentEnvironment() bool
- func (configuration *Configuration) IsDockerized() bool
- func (configuration *Configuration) IsProductionEnvironment() bool
- func (configuration *Configuration) IsStagingEnvironment() bool
- func (configuration *Configuration) IsTestEnvironment() bool
- type Influx
- type MySQL
- func (mysql *MySQL) GetAddress() string
- func (mysql *MySQL) GetDatabase() string
- func (mysql *MySQL) GetPassword() string
- func (mysql *MySQL) GetUsername() string
- func (mysql *MySQL) IsPasswordSkipped() bool
- func (mysql *MySQL) SetAddress(address string)
- func (mysql *MySQL) SetDatabase(database string)
- func (mysql *MySQL) SetPassword(password string)
- func (mysql *MySQL) SetUsername(username string)
- type Ports
- 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) 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"` Server *Server `yaml:"server"` Influx *Influx `yaml:"influx"` MySQL *MySQL `yaml:"mysql"` Clients []*Client `yaml:"clients"` }
func (*Configuration) GetClientsConfiguration ¶
func (configuration *Configuration) GetClientsConfiguration() []IClientConfiguration
func (*Configuration) GetEnvironment ¶
func (configuration *Configuration) GetEnvironment() string
func (*Configuration) GetInfluxConfiguration ¶
func (configuration *Configuration) GetInfluxConfiguration() IInfluxConfiguration
func (*Configuration) GetMySQLConfiguration ¶
func (configuration *Configuration) GetMySQLConfiguration() IMySqlConfiguration
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) IsStagingEnvironment ¶
func (configuration *Configuration) IsStagingEnvironment() bool
func (*Configuration) IsTestEnvironment ¶
func (configuration *Configuration) IsTestEnvironment() 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 MySQL ¶
type MySQL struct { Address string `yaml:"address"` Database string `yaml:"database"` Username string `yaml:"username"` Password string `yaml:"password"` SkipPassword bool `yaml:"skip_password"` }
func (*MySQL) GetAddress ¶
func (*MySQL) GetDatabase ¶
func (*MySQL) GetPassword ¶
func (*MySQL) GetUsername ¶
func (*MySQL) IsPasswordSkipped ¶
func (*MySQL) SetAddress ¶
func (*MySQL) SetDatabase ¶
func (*MySQL) SetPassword ¶
func (*MySQL) SetUsername ¶
type Ports ¶
type Ports struct { Active int `yaml:"active"` Passive int `yaml:"passive"` Diagnostics int `yaml:"diagnostics"` }
func (*Ports) GetDiagnostics ¶
func (*Ports) GetPassive ¶
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"` HashKey string `yaml:"hash_key"` BlockKey string `yaml:"block_key"` }
func (*Server) GetBlockKey ¶
func (*Server) GetBuildNumber ¶
func (*Server) GetHashKey ¶
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.