Moved translation client from bridge to router.

This commit is contained in:
Patrick Connolly
2018-10-15 03:50:44 +08:00
parent 3e036b370a
commit aeb06c7478
3 changed files with 21 additions and 18 deletions

View File

@@ -11,6 +11,7 @@ import (
prefixed "github.com/matterbridge/logrus-prefixed-formatter"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
"cloud.google.com/go/translate"
)
const (
@@ -169,6 +170,7 @@ type ConfigValues struct {
Zulip map[string]Protocol
General Protocol
Gateway []Gateway
GTClient *translate.Client
SameChannelGateway []SameChannelGateway
}