This commit is contained in:
crusader 2017-12-01 18:21:11 +09:00
parent 4e0f744ccc
commit 078d10a10e
3 changed files with 24 additions and 2 deletions

View File

@ -1,5 +1,9 @@
package noauthprobe
const (
HTTPEntry_NoAuthProbe = "/auth"
)
const (
HTTPRequestHeaderKey_NoAuthProbe_Method = "overFlow-NoAuthProbe-Method"
HTTPRequestHeaderKey_NoAuthProbe_TempProbeKey = "overFlow-NoAuthProbe-TempProbeKey"

View File

@ -6,6 +6,6 @@ import (
)
type NoAuthProbeService interface {
Accept(probe probeM.Probe)
Deny(noAuthProbe noauthprobeM.NoAuthProbe)
Accept(probe *probeM.Probe)
Deny(noAuthProbe *noauthprobeM.NoAuthProbe)
}

18
modules/probe/probe.go Normal file
View File

@ -0,0 +1,18 @@
package probe
const (
HTTPEntry_Probe = "/probe"
HTTPEntry_Data = "/data"
HTTPEntry_File = "/file"
)
const (
HTTPRequestHeaderKey_Probe_Method = "overFlow-Probe-Method"
HTTPRequestHeaderKey_Probe_ProbeKey = "overFlow-Probe-ProbeKey"
HTTPResponseHeaderKey_Probe_SetEncryptionKey = "overFlow-Probe-SetEncryptionKey"
)
const (
HTTPRequestHeaderValue_Probe_Method_Connect = "CONNECT"
)