mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-10-10 06:39:18 +08:00
add response parse module
This commit is contained in:
@@ -16,6 +16,8 @@ type MysqlQueryPiece struct {
|
||||
VisitDB *string `json:"db"`
|
||||
QuerySQL *string `json:"sql"`
|
||||
CostTimeInMS int64 `json:"cms"`
|
||||
OK int64 `json:"ok"`
|
||||
ResponseVal int64 `json:"rv"`
|
||||
}
|
||||
|
||||
func (mqp *MysqlQueryPiece) String() (*string) {
|
||||
@@ -42,3 +44,8 @@ func (mqp *MysqlQueryPiece) GenerateJsonBytes() {
|
||||
func (mqp *MysqlQueryPiece) GetSQL() (str *string) {
|
||||
return mqp.QuerySQL
|
||||
}
|
||||
|
||||
func (mqp *MysqlQueryPiece) SetResponse(ok, respVal int64) {
|
||||
mqp.OK = ok
|
||||
mqp.ResponseVal = respVal
|
||||
}
|
||||
|
Reference in New Issue
Block a user