Licensing: Send the app url to plugin (#64258)

This commit is contained in:
lean.dev
2023-03-08 14:44:04 -03:00
committed by GitHub
parent 4625958aea
commit 0b0140b761
5 changed files with 18 additions and 2 deletions
+6
View File
@@ -9,12 +9,14 @@ import (
type Service struct {
licensePath string
appURL string
license licensing.Licensing
}
func ProvideLicensing(cfg *setting.Cfg, l licensing.Licensing) *Service {
return &Service{
licensePath: cfg.EnterpriseLicensePath,
appURL: cfg.AppURL,
license: l,
}
}
@@ -36,3 +38,7 @@ func (l Service) Edition() string {
func (l Service) Path() string {
return l.licensePath
}
func (l Service) AppURL() string {
return l.appURL
}