From eadd089426ed3588662743d2a239e11146d971bc Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 12 Apr 2018 15:09:26 +0900 Subject: [PATCH] ing --- config/probe/{auth => }/auth.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename config/probe/{auth => }/auth.go (51%) diff --git a/config/probe/auth/auth.go b/config/probe/auth.go similarity index 51% rename from config/probe/auth/auth.go rename to config/probe/auth.go index 89128af..e4168b8 100644 --- a/config/probe/auth/auth.go +++ b/config/probe/auth.go @@ -1,16 +1,16 @@ -package auth +package probe import "time" const ( - ConfigFileName = "auth.json" + AuthConfigFileName = "auth.json" ) -type StateType int +type AuthStateType int const ( - StateTypeNotRegisterd StateType = iota - StateTypeRegisterd + AuthStateTypeNotRegisterd AuthStateType = iota + AuthStateTypeRegisterd ) type Auth struct { @@ -18,9 +18,9 @@ type Auth struct { DenyDate *time.Time `json:"denyDate,omitempty" yaml:"denyDate" toml:"denyDate"` } -func (a *Auth) State() StateType { +func (a *Auth) State() AuthStateType { if nil != a.TempKey && "" != *a.TempKey { - return StateTypeRegisterd + return AuthStateTypeRegisterd } - return StateTypeNotRegisterd + return AuthStateTypeNotRegisterd }