config

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger                    lager.Logger
	HealthcheckURLs           []string `yaml:"HealthcheckURLs" validate:"nonzero"`
	Username                  string   `yaml:"Username" validate:"nonzero"`
	Password                  string   `yaml:"Password" validate:"nonzero"`
	ShutDownMysql             string
	MysqlStatus               string
	GetSeqNumber              string
	StartMysqlInJoinMode      string
	StartMysqlInBootstrapMode string
	LogFilePath               string `yaml:"LogFilePath" validate:"nonzero"`
	RepairMode                string `yaml:"RepairMode" validate:"nonzero,regexp=^(bootstrap|rejoin-unsafe)$"`
}

func NewConfig

func NewConfig(osArgs []string) (*Config, error)

func (*Config) BuildLogger

func (c *Config) BuildLogger() error

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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