Plugins: Optionally preload some plugins during frontend app boot (#15266)

* auto load

* update comments

* gofmt

* use preload from json

* fix formatting

* change general plugin loader to app

* Refactoring: Plugin preloading #15266
This commit is contained in:
Ryan McKinley
2019-04-10 23:02:22 -07:00
committed by Torkel Ödegaard
parent 5e48750868
commit d6887bf77f
6 changed files with 27 additions and 1 deletions

View File

@ -46,6 +46,7 @@ type PluginBase struct {
Module string `json:"module"`
BaseUrl string `json:"baseUrl"`
HideFromList bool `json:"hideFromList,omitempty"`
Preload bool `json:"preload"`
State PluginState `json:"state,omitempty"`
IncludedInAppId string `json:"-"`