|
|
@@ -4,12 +4,10 @@ import ( |
|
|
|
"context" |
|
|
|
"gim/pkg/k8sutil" |
|
|
|
"gim/pkg/logger" |
|
|
|
"os" |
|
|
|
"strconv" |
|
|
|
|
|
|
|
"go.uber.org/zap" |
|
|
|
|
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
|
|
|
"os" |
|
|
|
"strconv" |
|
|
|
) |
|
|
|
|
|
|
|
const ( |
|
|
@@ -23,16 +21,16 @@ const ( |
|
|
|
|
|
|
|
var ( |
|
|
|
NameSpace string = "gim" |
|
|
|
MySQL string |
|
|
|
RedisIP string |
|
|
|
RedisPassword string |
|
|
|
MySQL string = "root:Fnuo123com@@tcp(119.23.182.117:3306)/gim?charset=utf8&parseTime=true" |
|
|
|
RedisIP string = "120.24.28.6:32572" |
|
|
|
RedisPassword string = "" |
|
|
|
|
|
|
|
LocalAddr string |
|
|
|
PushRoomSubscribeNum int |
|
|
|
PushAllSubscribeNum int |
|
|
|
) |
|
|
|
|
|
|
|
func init() { |
|
|
|
func Init() { |
|
|
|
k8sClient, err := k8sutil.GetK8sClient() |
|
|
|
if err != nil { |
|
|
|
panic(err) |
|
|
|