plugin

package
v0.6.0-beta.20210730.2021 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPluginDirName = "plugins"
View Source
const DefaultPluginFsPathBase = "plugins"

Variables

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 WithDirPath(path string) Option

func WithFsPathBase

func WithFsPathBase(path string) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Init

func (svc *Service) Init() (err error)

func (*Service) SetDirPath

func (svc *Service) SetDirPath(path string)

func (*Service) SetFsPathBase

func (svc *Service) SetFsPathBase(path string)

func (*Service) Start

func (svc *Service) Start()

func (*Service) Stop

func (svc *Service) Stop()

func (*Service) Wait

func (svc *Service) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL