From 66bdd4681d486081b6a03918abf6cb9ed2417997 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 10 May 2018 18:17:28 +0900 Subject: [PATCH] ing --- model/noauthprobe/NoAuthProbe.go | 18 ++++++++++-------- model/probe/Probe.go | 2 ++ service/noauthprobe/NoAuthProbeService.go | 6 ++++++ 3 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 service/noauthprobe/NoAuthProbeService.go diff --git a/model/noauthprobe/NoAuthProbe.go b/model/noauthprobe/NoAuthProbe.go index 2df666c..2ecedaf 100644 --- a/model/noauthprobe/NoAuthProbe.go +++ b/model/noauthprobe/NoAuthProbe.go @@ -10,12 +10,14 @@ import ( ) type NoAuthProbe struct { - ID json.Number `json:"id,Number,omitempty"` - Description string `json:"description,omitempty"` - Status *meta.MetaNoAuthProbeStatus `json:"status,omitempty"` - TempProbeKey string `json:"tempProbeKey,omitempty"` - CreateDate util.Timestamp `json:"createDate,omitempty"` - APIKey string `json:"apiKey,omitempty"` - Domain *domain.DomainMember `json:"domain,omitempty"` - Probe *probe.Probe `json:"probe,omitempty"` + ID json.Number `json:"id,Number,omitempty"` + Description string `json:"description,omitempty"` + Status *meta.MetaNoAuthProbeStatus `json:"status,omitempty"` + TempProbeKey string `json:"tempProbeKey,omitempty"` + CreateDate util.Timestamp `json:"createDate,omitempty"` + APIKey string `json:"apiKey,omitempty"` + Domain *domain.DomainMember `json:"domain,omitempty"` + Probe *probe.Probe `json:"probe,omitempty"` + ConnectDate util.Timestamp `json:"connectDate,omitempty"` + ConnectAddress string `json:"connectAddress,omitempty"` } diff --git a/model/probe/Probe.go b/model/probe/Probe.go index 7c75ccb..c1944e9 100644 --- a/model/probe/Probe.go +++ b/model/probe/Probe.go @@ -21,6 +21,8 @@ type Probe struct { Cidr string `json:"cidr,omitempty"` AuthorizeDate util.Timestamp `json:"authorizeDate,omitempty"` AuthorizeMember *member.Member `json:"authorizeMember,omitempty"` + ConnectDate util.Timestamp `json:"connectDate,omitempty"` + ConnectAddress string `json:"connectAddress,omitempty"` TargetCount int `json:"targetCount,omitempty"` SensorCount int `json:"sensorCount,omitempty"` diff --git a/service/noauthprobe/NoAuthProbeService.go b/service/noauthprobe/NoAuthProbeService.go new file mode 100644 index 0000000..74e4edc --- /dev/null +++ b/service/noauthprobe/NoAuthProbeService.go @@ -0,0 +1,6 @@ +package noauthprobe + +type NoAuthProbeService interface { + Accept(probeKey string) error + Deny() error +}