init
This commit is contained in:
17
logic/auth/zhaobi/plugin.go
Normal file
17
logic/auth/zhaobi/plugin.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package acc
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gitlab.33.cn/chat/im/logic/auth"
|
||||
)
|
||||
|
||||
const Name = "zb_otc"
|
||||
|
||||
func init() {
|
||||
auth.Register(Name, NewAuth)
|
||||
}
|
||||
|
||||
func NewAuth(url string, timeout time.Duration) auth.Auth {
|
||||
return &talkClient{url: url, timeout: timeout}
|
||||
}
|
||||
Reference in New Issue
Block a user