redis

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartCommand       = CommandName("start")
	StopCommand        = CommandName("stop")
	RunAsSlaveCommand  = CommandName("run_as_slave")
	RunAsMasterCommand = CommandName("run_as_master")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(cmd CommandName, consulState state.Consul) Command

func (*Command) Name

func (c *Command) Name() CommandName

func (*Command) String

func (c *Command) String() string

type CommandName

type CommandName string

type Config

type Config struct {
	Address string // address (IP+Port) used to talk to Redis
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(m *cli.Context) (*Manager, error)

func (*Manager) CommandChWriter

func (m *Manager) CommandChWriter() chan<- Command

func (*Manager) CommandRunner

func (m *Manager) CommandRunner()

func (*Manager) Config

func (m *Manager) Config() Config

func (*Manager) StateChReader

func (m *Manager) StateChReader() <-chan state.Redis

Jump to

Keyboard shortcuts

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