.
This commit is contained in:
parent
64b9c6895a
commit
c537ea0af8
|
@ -5,3 +5,15 @@ type ServiceScanInfo interface {
|
||||||
GetPort() string
|
GetPort() string
|
||||||
GetIP() string
|
GetIP() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ScanInfoImpl struct {
|
||||||
|
Ip string
|
||||||
|
Port string
|
||||||
|
}
|
||||||
|
func (s *ScanInfoImpl) SetHistory(history string) {}
|
||||||
|
func (s *ScanInfoImpl) GetPort() string {return s.Port}
|
||||||
|
func (s *ScanInfoImpl) GetIP() string {return s.Ip}
|
||||||
|
|
||||||
|
func NewScanInfoImpl (ip string, port string) *ScanInfoImpl{
|
||||||
|
return &ScanInfoImpl{Ip:ip,Port:port}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user