commons_go/model/scaninfo/scaninfo.go

20 lines
433 B
Go
Raw Normal View History

2017-04-10 11:14:12 +00:00
package scaninfo
type ServiceScanInfo interface {
SetHistory(history string)
GetPort() string
GetIP() string
}
2017-04-11 08:19:30 +00:00
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}
}