mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-13 21:43:44 +08:00
add golangci-lint.
This commit is contained in:
@@ -32,17 +32,6 @@ var (
|
||||
localCronClient ICronClient
|
||||
)
|
||||
|
||||
func AuthClient() IAuthClient {
|
||||
if localAuthClient == nil {
|
||||
panic("implement not found for interface IAuthClient, forgot register?")
|
||||
}
|
||||
return localAuthClient
|
||||
}
|
||||
|
||||
func RegisterAuthClient(i IAuthClient) {
|
||||
localAuthClient = i
|
||||
}
|
||||
|
||||
func CronClient() ICronClient {
|
||||
if localCronClient == nil {
|
||||
panic("implement not found for interface ICronClient, forgot register?")
|
||||
@@ -53,3 +42,14 @@ func CronClient() ICronClient {
|
||||
func RegisterCronClient(i ICronClient) {
|
||||
localCronClient = i
|
||||
}
|
||||
|
||||
func AuthClient() IAuthClient {
|
||||
if localAuthClient == nil {
|
||||
panic("implement not found for interface IAuthClient, forgot register?")
|
||||
}
|
||||
return localAuthClient
|
||||
}
|
||||
|
||||
func RegisterAuthClient(i IAuthClient) {
|
||||
localAuthClient = i
|
||||
}
|
||||
|
Reference in New Issue
Block a user