ing
This commit is contained in:
parent
597eda88ed
commit
4e0f744ccc
|
@ -19,3 +19,4 @@ type NoAuthProbe struct {
|
|||
Domain *domain.DomainMember `json:"domain,omitempty"`
|
||||
Probe *probe.Probe `json:"probe,omitempty"`
|
||||
}
|
||||
|
||||
|
|
6
modules/noauthprobe/model/NoAuthProbeDescription.go
Normal file
6
modules/noauthprobe/model/NoAuthProbeDescription.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package model
|
||||
|
||||
type NoAuthProbeDescription struct {
|
||||
Host *NoAuthProbeDescriptionHost `json:"host,omitempty"`
|
||||
Network *NoAuthProbeDescriptionNetwork `json:"network,omitempty"`
|
||||
}
|
11
modules/noauthprobe/model/NoAuthProbeDescriptionHost.go
Normal file
11
modules/noauthprobe/model/NoAuthProbeDescriptionHost.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package model
|
||||
|
||||
type NoAuthProbeDescriptionHost struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
OS string `json:"os,omitempty"`
|
||||
Platform string `json:"paltform,omitempty"`
|
||||
PlatformFamily string `json:"platformFamily,omitempty"`
|
||||
PlatformVersion string `json:"platformVersion,omitempty"`
|
||||
KernelVersion string `json:"kernelVersion,omitempty"`
|
||||
HostID string `json:"hostID,omitempty"`
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package model
|
||||
|
||||
type NoAuthProbeDescriptionNetwork struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Address string `json:"address,omitempty"`
|
||||
Gateway string `json:"gateway,omitempty"`
|
||||
MacAddress string `json:"macAddress,omitempty"`
|
||||
}
|
13
modules/noauthprobe/noauthprobe.go
Normal file
13
modules/noauthprobe/noauthprobe.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package noauthprobe
|
||||
|
||||
const (
|
||||
HTTPRequestHeaderKey_NoAuthProbe_Method = "overFlow-NoAuthProbe-Method"
|
||||
HTTPRequestHeaderKey_NoAuthProbe_TempProbeKey = "overFlow-NoAuthProbe-TempProbeKey"
|
||||
|
||||
HTTPResponseHeaderKey_NoAuthProbe_SetTempProbeKey = "overFlow-NoAuthProbe-SetTempProbeKey"
|
||||
)
|
||||
|
||||
const (
|
||||
HTTPRequestHeaderValue_NoAuthProbe_Method_Regist = "REGIST"
|
||||
HTTPRequestHeaderValue_NoAuthProbe_Method_Connect = "CONNECT"
|
||||
)
|
11
modules/noauthprobe/service/probe/NoAuthProbeService.go
Normal file
11
modules/noauthprobe/service/probe/NoAuthProbeService.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package service
|
||||
|
||||
import (
|
||||
noauthprobeM "git.loafle.net/overflow/overflow_commons_go/modules/noauthprobe/model"
|
||||
probeM "git.loafle.net/overflow/overflow_commons_go/modules/probe/model"
|
||||
)
|
||||
|
||||
type NoAuthProbeService interface {
|
||||
Accept(probe probeM.Probe)
|
||||
Deny(noAuthProbe noauthprobeM.NoAuthProbe)
|
||||
}
|
Loading…
Reference in New Issue
Block a user