房间麦克风热点计数
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
573 B

package gift
import (
"context"
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/gift/v1"
k8s_client "git.gz.internal.jumaiyx.cn/pkg/k8s-client"
"git.gz.internal.jumaiyx.cn/pkg/kubediscovery"
"git.gz.internal.jumaiyx.cn/pkg/log"
)
func NewGiftClient(logger log.Logger) v1.GiftClient {
ctx := context.Background()
discovery, err := kubediscovery.Discovery(ctx, logger, "gift-service", kubediscovery.Namespace(k8s_client.DevNamespace))
if err != nil {
logger.Errorf("Gift client failed:%v", err)
return nil
}
client := v1.NewGiftClient(discovery)
return client
}