Documentation
¶
Index ¶
- Constants
- Variables
- func GetPluginService(path string, opts ...Option) (svc interfaces.PluginService, err error)
- func NewPluginService(opts ...Option) (svc2 interfaces.PluginService, err error)
- func ProvideGetPluginService(path string, opts ...Option) func() (svr interfaces.PluginService, err error)
- type Option
- type Service
Constants ¶
View Source
const DefaultPluginDirName = "plugins"
View Source
const DefaultPluginFsPathBase = "plugins"
Variables ¶
View Source
var DefaultPluginDirPath = path.Join(config.DefaultConfigDirPath, DefaultPluginDirName)
Functions ¶
func GetPluginService ¶
func GetPluginService(path string, opts ...Option) (svc interfaces.PluginService, err error)
func NewPluginService ¶
func NewPluginService(opts ...Option) (svc2 interfaces.PluginService, err error)
func ProvideGetPluginService ¶
func ProvideGetPluginService(path string, opts ...Option) func() (svr interfaces.PluginService, err error)
Types ¶
type Option ¶
type Option func(svc interfaces.PluginService)
func WithDirPath ¶
func WithFsPathBase ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) SetDirPath ¶
func (*Service) SetFsPathBase ¶
Click to show internal directories.
Click to hide internal directories.