1 Star 0 Fork 0

zhangjungang/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
errors.go 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
package memcache
// All memcache protocol errors are defined here.
import (
"errors"
)
var (
ErrNotImplemented = errors.New("not implemented")
)
// memcache text parser errors
var (
ErrParserCaughtInError = errors.New("memcache parser caught in error loop")
ErrParserUnknownCommand = errors.New("unknown memcache command found")
ErrNoMoreArgument = errors.New("no more command arguments")
ErrExpectedNumber = errors.New("expected number value")
ErrExpectedNoReply = errors.New("expected noreply in argument list")
ErrExpectedCRLF = errors.New("expected CRLF")
ErrExpectedKeys = errors.New("message has no keys")
)
// memcache binary parser errors
var (
ErrInvalidMemcacheMagic = errors.New("invalid memcache magic number")
ErrLen = errors.New("length field error")
)
// memcache UDP errors
var (
ErrUdpIncompleteMessage = errors.New("attempt to parse incomplete message failed")
)
// memcache transaction/message errors
var (
ErrInvalidMessage = errors.New("message is invalid")
ErrMixOfBinaryAndText = errors.New("mix of binary and text in one connection")
ErrResponseUnknownTransaction = errors.New("response from unknown transaction")
ErrExpectedValueForMerge = errors.New("expected value to merge with")
ErrExpectedStatsForMerge = errors.New("expected stat respose to merge with")
)
// internal notes to be published with transaction
var (
NoteRequestPacketLoss = "Packet loss while capturing the request"
NoteResponsePacketLoss = "Packet loss while capturing the response"
NoteTransactionNoRequ = "Invalid transaction. Request missing"
NoteNonQuietResponseOnly = "Missing response for non-quiet request"
NoteTransUnfinished = "Unfinished transaction"
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangjungang/beats.git
git@gitee.com:zhangjungang/beats.git
zhangjungang
beats
beats
v1.2.1

搜索帮助