18 lines
249 B
Go
18 lines
249 B
Go
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}
|
|
}
|