Documentation
¶
Index ¶
- Constants
- func DecodeCommand(buf []byte, comm *Command) error
- func ProtobufDecode(buf []byte, msg proto.Message) error
- func ProtobufEncode(msg proto.Message) ([]byte, error)
- type BulkReply
- type Command
- type CommandBatch
- type Config
- type Error
- type ErrorReply
- type IntegerReply
- type KMDB
- type MultiBulkReply
- type Operation
- type Sencondary
- type StatusReply
Constants ¶
View Source
const ( ASTERISK_BYTE byte = '*' DOLLAR_BYTE byte = '$' PLUS_BYTE byte = '+' MINUS_BYTE byte = '-' COLON_BYTE byte = ':' CR_BYTE byte = '\r' LF_BYTE byte = '\n' )
View Source
const KMDB_VERSION = "1.0.0"
Variables ¶
This section is empty.
Functions ¶
func DecodeCommand ¶
Types ¶
type CommandBatch ¶
type CommandBatch struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { Listen struct { Ip string Port int } Store struct { Dir string PidFile string } Type struct { Primary bool SlaveOf string } }
func LoadConfig ¶
type ErrorReply ¶
type ErrorReply string
type IntegerReply ¶
type IntegerReply int
type KMDB ¶
type KMDB struct { Db *gorocksdb.DB Options *gorocksdb.Options ReadOptions *gorocksdb.ReadOptions WriteOptions *gorocksdb.WriteOptions Primary bool }
type MultiBulkReply ¶
type MultiBulkReply struct {
// contains filtered or unexported fields
}
type Sencondary ¶
type StatusReply ¶
type StatusReply string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.