config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	OldRedis             Redis `yaml:"old_redis"`
	ConcurrentWorkers    uint  `yaml:"concurrent_workers"`
	NewRedis             Redis `yaml:"new_redis"`
	Databases            []int `yaml:"migration_databases"`
	ClearBeforeMigration bool  `yaml:"clear_before_migration"`
}

func ParseConfig

func ParseConfig(configFile string) Configuration

ParseConfig is to parse YAML configuration file

type Redis

type Redis struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Password string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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