This commit is contained in:
jackdaw@loafle.com 2017-04-11 13:08:42 +09:00
parent 49eddff2e5
commit 231fe4cb66
2 changed files with 5 additions and 5 deletions

View File

@ -3,8 +3,8 @@ package pgsql
import (
"bytes"
"encoding/binary"
"loafle.com/overflow/collector/core/scan/service/matcher/packet"
"loafle.com/overflow/collector/discovery/types"
"loafle.com/overflow/commons_go/matcher/packet"
"loafle.com/overflow/commons_go/model/scaninfo"
)
const (
@ -112,7 +112,7 @@ func (t *PostgreSQLMatcher) Packet(index int) *packet.Packet {
return t.packets[index]
}
func (t *PostgreSQLMatcher) IsError(index int, packet *packet.Packet, info *types.ServiceScanInfo) bool {
func (t *PostgreSQLMatcher) IsError(index int, packet *packet.Packet, info scaninfo.ServiceScanInfo) bool {
return false
}
@ -124,7 +124,7 @@ func (t *PostgreSQLMatcher) IsPrePacket() bool {
return false
}
func (t *PostgreSQLMatcher) Match(index int, packet *packet.Packet, info *types.ServiceScanInfo) bool {
func (t *PostgreSQLMatcher) Match(index int, packet *packet.Packet, info scaninfo.ServiceScanInfo) bool {
if packet == nil {
return false

View File

@ -2,7 +2,7 @@ package pgsql
import (
"loafle.com/overflow/collector/core/scan/service/matcher/packet"
"loafle.com/overflow/commons_go/matcher/packet"
"net"
"testing"
"crypto/tls"