Versions in this module Expand all Collapse all v0 v0.1.2 Dec 19, 2019 v0.1.0 Jan 27, 2017 Changes in this version + var ErrDisabled = errors.New("disabled") + var ErrUnknownCommand = errors.New("unknown command") + var ErrWrongNumberOfArguments = errors.New("wrong number of arguments") + type Applier interface + Apply func(conn redcon.Conn, cmd redcon.Command, mutate func() (interface{}, error), ...) (interface{}, error) + Log func() Logger + type Backend int + const Bolt + const FastLog + const InMem + const LevelDB + func (b Backend) String() string + type Level int + const High + const Low + const Medium + func (l Level) String() string + type LogLevel int + const Debug + const Notice + const Verbose + const Warning + type Logger interface + Debugf func(format string, args ...interface{}) + Noticef func(format string, args ...interface{}) + Printf func(format string, args ...interface{}) + Verbosef func(format string, args ...interface{}) + Warningf func(format string, args ...interface{}) + type Machine interface + Command func(a Applier, conn redcon.Conn, cmd redcon.Command) (interface{}, error) + Restore func(rd io.Reader) error + Snapshot func(wr io.Writer) error + type Node struct + func Open(dir, addr, join string, handler Machine, opts *Options) (node *Node, err error) + func (n *Node) Close() error + func (n *Node) Log() Logger + func (n *Node) Store() interface{} + type Options struct + Backend Backend + ConnAccept func(redcon.Conn) bool + ConnClosed func(redcon.Conn, error) + Consistency Level + Durability Level + LogLevel LogLevel + LogOutput io.Writer