Add new functions to channel service and kv store service interfaces

Этот коммит содержится в:
Giorgi Bochorishvili
2022-12-13 17:11:57 +04:00
родитель 496fe73f10
Коммит 9668733615
4 изменённых файлов: 26 добавлений и 2 удалений

Просмотреть файл

@@ -262,8 +262,9 @@ func NewServer(options ...Option) (*Server, error) {
// ensure app implements `product.UserService`
var _ product.UserService = (*App)(nil)
app := New(ServerConnector(s.Channels()))
serviceMap := map[ServiceKey]any{
ChannelKey: &channelsWrapper{srv: s},
ChannelKey: &channelsWrapper{srv: s, app: app},
ConfigKey: s.platform,
LicenseKey: s.licenseWrapper,
FilestoreKey: s.platform.FileBackend(),