app: add channels wrapper (#19861)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6da1d90c4a
Коммит
54cb6d889f
@@ -90,6 +90,7 @@ var SentryDSN = "placeholder_sentry_dsn"
|
||||
type ServiceKey string
|
||||
|
||||
const (
|
||||
ChannelKey ServiceKey = "channel"
|
||||
ConfigKey ServiceKey = "config"
|
||||
LicenseKey ServiceKey = "license"
|
||||
FilestoreKey ServiceKey = "filestore"
|
||||
@@ -363,6 +364,10 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
}
|
||||
s.filestore = backend
|
||||
|
||||
channelWrapper := &channelsWrapper{
|
||||
srv: s,
|
||||
}
|
||||
|
||||
s.licenseWrapper = &licenseWrapper{
|
||||
srv: s,
|
||||
}
|
||||
@@ -385,6 +390,7 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
}
|
||||
|
||||
serviceMap := map[ServiceKey]interface{}{
|
||||
ChannelKey: channelWrapper,
|
||||
ConfigKey: s.configStore,
|
||||
LicenseKey: s.licenseWrapper,
|
||||
FilestoreKey: s.filestore,
|
||||
|
||||
Ссылка в новой задаче
Block a user