Documentation
¶
Index ¶
- Constants
- Variables
- func IsNetTimeout(err error) bool
- type Conn
- func (rc *Conn) Authenticate(pass string) error
- func (rc *Conn) Call(req *Msg) (*Msg, error)
- func (rc *Conn) Close() error
- func (rc *Conn) MustCall(req *Msg) *Msg
- func (rc *Conn) MustCallAndGetOk(req *Msg)
- func (rc *Conn) MustReadMsg() *Msg
- func (rc *Conn) MustWrite(data []byte) int
- func (rc *Conn) MustWriteMsg(msg *Msg) int
- func (rc *Conn) Read(p []byte) (n int, err error)
- func (rc *Conn) ReadMsg() (*Msg, error)
- func (rc *Conn) RemoteAddr() net.Addr
- func (rc *Conn) Select(db int) error
- func (rc *Conn) Write(data []byte) (int, error)
- func (rc *Conn) WriteMsg(msg *Msg) (int, error)
- type MessageOp
- type Msg
Constants ¶
View Source
const ( MsgOpUnchecked = MessageOp(iota) MsgOpAuth MsgOpSelect MsgOpBroken MsgOpOther )
Variables ¶
View Source
var ( MsgOk = []byte("+OK\r\n") MsgNoAuth = []byte("-NOAUTH Authentication required.\r\n") MsgInvalidPass = []byte("-ERR invalid password\r\n") MsgNoPasswordSet = []byte("-ERR Client sent AUTH, but no password is set\r\n") MsgParseError = []byte("-ERR Command parse error (redis-proxy)\r\n") )
Functions ¶
func IsNetTimeout ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Authenticate ¶
func (*Conn) MustCallAndGetOk ¶
func (*Conn) MustReadMsg ¶
func (*Conn) MustWriteMsg ¶
func (*Conn) RemoteAddr ¶
type Msg ¶
type Msg struct {
// contains filtered or unexported fields
}
func MsgFromStrings ¶
func (*Msg) FirstArgInt ¶
Click to show internal directories.
Click to hide internal directories.