ing
This commit is contained in:
parent
d2d9803637
commit
884138dbd7
|
@ -2,11 +2,11 @@ package noauthprobe
|
||||||
|
|
||||||
import "git.loafle.net/overflow/overflow_commons_go/util"
|
import "git.loafle.net/overflow/overflow_commons_go/util"
|
||||||
|
|
||||||
type NoAuthProbeStatType int
|
type NoAuthProbeStateType int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
NoAuthProbeStatTypeNotRegisterd NoAuthProbeStatType = iota
|
NoAuthProbeStateTypeNotRegisterd NoAuthProbeStateType = iota
|
||||||
NoAuthProbeStatTypeRegisterd
|
NoAuthProbeStateTypeRegisterd
|
||||||
)
|
)
|
||||||
|
|
||||||
type NoAuthProbeConfig struct {
|
type NoAuthProbeConfig struct {
|
||||||
|
@ -14,9 +14,9 @@ type NoAuthProbeConfig struct {
|
||||||
DenyDate *util.Timestamp `json:"denyDate,omitempty" yaml:"denyDate" toml:"denyDate"`
|
DenyDate *util.Timestamp `json:"denyDate,omitempty" yaml:"denyDate" toml:"denyDate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *NoAuthProbeConfig) Stat() NoAuthProbeStatType {
|
func (c *NoAuthProbeConfig) State() NoAuthProbeStateType {
|
||||||
if nil != c.TempKey && "" != *c.TempKey {
|
if nil != c.TempKey && "" != *c.TempKey {
|
||||||
return NoAuthProbeStatTypeRegisterd
|
return NoAuthProbeStateTypeRegisterd
|
||||||
}
|
}
|
||||||
return NoAuthProbeStatTypeNotRegisterd
|
return NoAuthProbeStateTypeNotRegisterd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user