This commit is contained in:
crusader 2018-05-10 18:17:28 +09:00
parent ace5a6e0f1
commit 66bdd4681d
3 changed files with 18 additions and 8 deletions

View File

@ -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"`
}

View File

@ -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"`

View File

@ -0,0 +1,6 @@
package noauthprobe
type NoAuthProbeService interface {
Accept(probeKey string) error
Deny() error
}