From c537ea0af887c506d6c5e24611d6745fb04490fe Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Tue, 11 Apr 2017 17:19:30 +0900 Subject: [PATCH] . --- model/scaninfo/scaninfo.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/model/scaninfo/scaninfo.go b/model/scaninfo/scaninfo.go index 8aefc57..f2bd077 100644 --- a/model/scaninfo/scaninfo.go +++ b/model/scaninfo/scaninfo.go @@ -5,3 +5,15 @@ type ServiceScanInfo interface { 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} +}