brokerconfig

package
v0.0.0-...-ff29edb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(config ServiceConfiguration) error

Types

type AuthConfiguration

type AuthConfiguration struct {
	Password string `yaml:"password"`
	Username string `yaml:"username"`
}

type Config

type Config struct {
	RedisConfiguration              ServiceConfiguration `yaml:"redis"`
	AuthConfiguration               AuthConfiguration    `yaml:"auth"`
	Host                            string               `yaml:"backend_host"`
	Port                            string               `yaml:"backend_port"`
	MonitExecutablePath             string               `yaml:"monit_executable_path"`
	RedisServerExecutablePath       string               `yaml:"redis_server_executable_path"`
	AgentPort                       string               `yaml:"agent_port"`
	ConsistencyVerificationInterval int                  `yaml:"consistency_check_interval_seconds"`
}

func ParseConfig

func ParseConfig(path string) (Config, error)

func (*Config) SharedEnabled

func (config *Config) SharedEnabled() bool

type ServiceConfiguration

type ServiceConfiguration struct {
	ServiceName                 string `yaml:"service_name"`
	ServiceID                   string `yaml:"service_id"`
	SharedVMPlanID              string `yaml:"shared_vm_plan_id"`
	Host                        string `yaml:"host"`
	DefaultConfigPath           string `yaml:"redis_conf_path"`
	ProcessCheckIntervalSeconds int    `yaml:"process_check_interval"`
	StartRedisTimeoutSeconds    int    `yaml:"start_redis_timeout"`
	InstanceDataDirectory       string `yaml:"data_directory"`
	PidfileDirectory            string `yaml:"pidfile_directory"`
	InstanceLogDirectory        string `yaml:"log_directory"`
	ServiceInstanceLimit        int    `yaml:"service_instance_limit"`
	Description                 string `yaml:"description"`
	LongDescription             string `yaml:"long_description"`
	ProviderDisplayName         string `yaml:"provider_display_name"`
	DocumentationURL            string `yaml:"documentation_url"`
	SupportURL                  string `yaml:"support_url"`
	DisplayName                 string `yaml:"display_name"`
	IconImage                   string `yaml:"icon_image"`
}

Jump to

Keyboard shortcuts

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