config

package
v0.0.0-...-36f9daf Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config parse and validates command flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source Resource
	Target Resource
	Silent bool
	TTL    bool
}

Config represents the current source and target config. Source and target are Resources. Silent disables verbose mode. TTL enables keys TTL sync.

func Parse

func Parse() Config

Parse parses the command line flags and returns a Config.

type Resource

type Resource struct {
	URI     string
	IsRedis bool
	TLS     bool
}

Resource can be either Redis (isRedis) or file. URI is either a Redis URI or a file path.

Jump to

Keyboard shortcuts

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