From 884138dbd78acc52e64b1e8aac59110c4d2ab9c5 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 1 Dec 2017 20:02:32 +0900 Subject: [PATCH] ing --- config/noauthprobe/NoAuthProbeConfig.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/noauthprobe/NoAuthProbeConfig.go b/config/noauthprobe/NoAuthProbeConfig.go index 1be1c36..d675ceb 100644 --- a/config/noauthprobe/NoAuthProbeConfig.go +++ b/config/noauthprobe/NoAuthProbeConfig.go @@ -2,11 +2,11 @@ package noauthprobe import "git.loafle.net/overflow/overflow_commons_go/util" -type NoAuthProbeStatType int +type NoAuthProbeStateType int const ( - NoAuthProbeStatTypeNotRegisterd NoAuthProbeStatType = iota - NoAuthProbeStatTypeRegisterd + NoAuthProbeStateTypeNotRegisterd NoAuthProbeStateType = iota + NoAuthProbeStateTypeRegisterd ) type NoAuthProbeConfig struct { @@ -14,9 +14,9 @@ type NoAuthProbeConfig struct { 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 { - return NoAuthProbeStatTypeRegisterd + return NoAuthProbeStateTypeRegisterd } - return NoAuthProbeStatTypeNotRegisterd + return NoAuthProbeStateTypeNotRegisterd }