overflow_probe/model/scaninfo/scaninfo.go
2017-08-03 19:08:34 +09:00

21 lines
465 B
Go

package scaninfo
type ServiceScanInfo interface {
SetHistory(history string)
GetPort() 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}
}