eos 음성채팅 지원 추가

This commit is contained in:
2024-01-04 19:04:48 +09:00
parent cacab9350d
commit 5c9116461a
3 changed files with 238 additions and 0 deletions

View File

@ -28,6 +28,9 @@ type TavernConfig struct {
Group map[string]configDocument `json:"tavern_group_types"`
MaingateApiToken string `json:"maingate_api_token"`
RedisURL string `json:"tavern_redis_url"`
EosClientId string `json:"eos_client_id"`
EosClientSecret string `json:"eos_client_secret"`
EosDeploymentId string `json:"eos_deployment_id"`
macAddr string
}
@ -120,6 +123,13 @@ func (tv *Tavern) prepare(ctx context.Context) error {
tv.httpApiBorker.AddHandler(gocommon.MakeHttpApiHandler(instant, "instant"))
tv.wsh.AddHandler(wshandler.MakeWebsocketApiHandler(instant, "instant"))
voice := new(groupVoice)
if err := voice.Initialize(tv, ctx); err != nil {
return logger.ErrorWithCallStack(err)
}
tv.httpApiBorker.AddHandler(gocommon.MakeHttpApiHandler(voice, "voice"))
tv.wsh.AddHandler(wshandler.MakeWebsocketApiHandler(voice, "voice"))
ccu = metric.NewMetric(metric.MetricGuage, "concurrent_user", "concurrent user count", map[string]string{"game": "lobby"})
return nil
}