Documentation
¶
Index ¶
- Constants
- func ParseDns(payload []byte) (string, string, []netaddr.IP)
- func ParseHttp(payload []byte) (string, string)
- func ParseMemcached(payload []byte) (string, []string)
- func ParseMongo(payload []byte) (res string)
- func ParseRedis(payload []byte) (cmd string, args string)
- type Http2FrameHeader
- type Http2Parser
- type Http2Request
- type Method
- type MysqlParser
- type PostgresParser
- type Protocol
- type RequestData
- type Status
Constants ¶
View Source
const ( MysqlComQuery = 3 MysqlComStmtPrepare = 0x16 MysqlComStmtExecute = 0x17 MysqlComStmtClose = 0x19 )
View Source
const ( PostgresFrameQuery byte = 'Q' PostgresFrameBind byte = 'B' PostgresFrameParse byte = 'P' PostgresFrameClose byte = 'C' )
View Source
const (
MongoOpMSG = 2013
)
Variables ¶
This section is empty.
Functions ¶
func ParseMemcached ¶
func ParseMongo ¶
func ParseRedis ¶
Types ¶
type Http2FrameHeader ¶
type Http2Parser ¶
type Http2Parser struct {
// contains filtered or unexported fields
}
func NewHttp2Parser ¶
func NewHttp2Parser() *Http2Parser
func (*Http2Parser) Parse ¶
func (p *Http2Parser) Parse(method Method, payload []byte, kernelTime uint64) []Http2Request
type Http2Request ¶
type MysqlParser ¶
type MysqlParser struct {
// contains filtered or unexported fields
}
func NewMysqlParser ¶
func NewMysqlParser() *MysqlParser
type PostgresParser ¶
type PostgresParser struct {
// contains filtered or unexported fields
}
func NewPostgresParser ¶
func NewPostgresParser() *PostgresParser
func (*PostgresParser) Parse ¶
func (p *PostgresParser) Parse(payload []byte) string
type Protocol ¶
type Protocol uint8
const ( ProtocolHTTP Protocol = 1 ProtocolPostgres Protocol = 2 ProtocolRedis Protocol = 3 ProtocolMemcached Protocol = 4 ProtocolMysql Protocol = 5 ProtocolMongo Protocol = 6 ProtocolKafka Protocol = 7 ProtocolCassandra Protocol = 8 ProtocolRabbitmq Protocol = 9 ProtocolNats Protocol = 10 ProtocolHTTP2 Protocol = 11 ProtocolDubbo2 Protocol = 12 ProtocolDNS Protocol = 13 )
type RequestData ¶
Click to show internal directories.
Click to hide internal directories.