房间热播计算任务
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.

19 lines
543 B

2 years ago
package room
import (
"context"
v1 "git.gz.internal.jumaiyx.cn/jm/jmproto/room/v1"
2 years ago
"git.gz.internal.jumaiyx.cn/pkg/k8s-client"
2 years ago
"git.gz.internal.jumaiyx.cn/pkg/kubediscovery"
"git.gz.internal.jumaiyx.cn/pkg/log"
)
func NewRoomService(log log.Logger) (v1.RoomClient, error) {
2 years ago
discovery, err := kubediscovery.Discovery(context.TODO(), log, "room-service", kubediscovery.Namespace(k8sclient.DevNamespace))
2 years ago
if err != nil {
log.Errorf("Connect room service failed:%v", err)
return nil, err
}
return v1.NewRoomClient(discovery), nil
}