Documentation ¶
Index ¶
Constants ¶
View Source
const ( NameRedis = "redis" IdRedis = 'r' )
View Source
const CRLF = "\r\n"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiBulkMsg ¶
type MultiBulkMsg struct {
Args [][]byte
}
MultiBulkMsg 多行消息
func MakeMultiBulkMsg ¶
func MakeMultiBulkMsg(args [][]byte) *MultiBulkMsg
type NullBulkMsg ¶
type NullBulkMsg struct{}
NullBulkMsg 空字符串
func MakeNullBulkMsg ¶
func MakeNullBulkMsg() *NullBulkMsg
MakeNullBulkMsg creates a new NullBulkMsg
type REDISCodec ¶
type REDISCodec struct{}
func (REDISCodec) ID ¶
func (REDISCodec) ID() byte
func (REDISCodec) Marshal ¶
func (REDISCodec) Marshal(v interface{}) ([]byte, error)
func (REDISCodec) Name ¶
func (REDISCodec) Name() string
func (REDISCodec) Unmarshal ¶
func (REDISCodec) Unmarshal(data []byte, v interface{}) error
type SuccessMsg ¶
type SuccessMsg struct {
Status string
}
SuccessMsg 状态消息
func (*SuccessMsg) Bytes ¶
func (that *SuccessMsg) Bytes() []byte
Click to show internal directories.
Click to hide internal directories.