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

@ -18,4 +18,6 @@ type NoAuthProbe struct {
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
}