Documentation ¶
Index ¶
- type Service
- func (s *Service) Base(pluginJSON plugins.JSONData, class plugins.Class, pluginDir string) (string, error)
- func (s *Service) Module(pluginJSON plugins.JSONData, class plugins.Class, pluginDir string) (string, error)
- func (s *Service) RelativeURL(p *plugins.Plugin, pathStr, defaultStr string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides methods for constructing asset paths for plugins. It supports core plugins, external plugins stored on the local filesystem, and external plugins stored on the plugins CDN, and it will switch to the correct implementation depending on the plugin and the config.
func DefaultService ¶
func ProvideService ¶
func ProvideService(cdn *pluginscdn.Service) *Service
func (*Service) Base ¶
func (s *Service) Base(pluginJSON plugins.JSONData, class plugins.Class, pluginDir string) (string, error)
Base returns the base path for the specified plugin.
Click to show internal directories.
Click to hide internal directories.