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
546 B
19 lines
546 B
package service |
|
|
|
import ( |
|
"context" |
|
|
|
"go-common/app/interface/main/web/model" |
|
warden "go-common/app/service/main/broadcast/api/grpc/v1" |
|
"go-common/library/log" |
|
) |
|
|
|
// BroadServers broadcast server list. |
|
func (s *Service) BroadServers(c context.Context, platform string) (res *warden.ServerListReply, err error) { |
|
if res, err = s.broadcastClient.ServerList(c, &warden.ServerListReq{Platform: platform}); err != nil { |
|
log.Error("s.broadCastClient.ServerList(%s) error(%v)", platform, err) |
|
res = model.DefaultServer |
|
err = nil |
|
} |
|
return |
|
}
|
|
|