redisconf

package
v0.0.0-...-33635b2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost = "127.0.0.1"
	DefaultPort = 6379
)

Variables

This section is empty.

Functions

func CopyWithInstanceAdditions

func CopyWithInstanceAdditions(fromPath, toPath, instanceID, port, password, pidDir string) error

Types

type Conf

type Conf []Param

func Load

func Load(path string) (Conf, error)

func New

func New(params ...Param) Conf

func (*Conf) CommandAliases

func (conf *Conf) CommandAliases() map[string]string

func (Conf) Encode

func (conf Conf) Encode() []byte

func (Conf) Get

func (conf Conf) Get(key string) string

func (Conf) HasKey

func (conf Conf) HasKey(key string) bool

func (Conf) Host

func (conf Conf) Host() string

func (*Conf) InitForDedicatedNode

func (c *Conf) InitForDedicatedNode(password ...string) error

func (Conf) Password

func (conf Conf) Password() string

func (Conf) Port

func (conf Conf) Port() int

func (Conf) Save

func (conf Conf) Save(path string) error

func (*Conf) Set

func (conf *Conf) Set(key string, value string)

type Param

type Param struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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