plugin

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviderPath added in v0.10.0

func GetProviderPath(name string, version string) (string, error)

GetProviderPath returns expected path of provider on file system from name and version of plugin

Types

type Manager added in v0.10.0

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

Manager handles CQProviders that can be either embedded (self-run provider for example) or remote using go_plugin

func NewManager added in v0.12.0

func NewManager() (*Manager, error)

func (*Manager) GetOrCreateProvider added in v0.10.0

func (p *Manager) GetOrCreateProvider(providerName, version string) (proto.CQProvider, error)

func (*Manager) GetProvider added in v0.10.0

func (p *Manager) GetProvider(providerName, version string) (proto.CQProvider, error)

func (*Manager) KillProvider added in v0.10.0

func (p *Manager) KillProvider(providerName string) error

func (*Manager) Shutdown added in v0.10.0

func (p *Manager) Shutdown()

Shutdown closes all clients and cleans the managed clients

type Plugin added in v0.12.0

type Plugin interface {
	Name() string
	Version() string
	Provider() proto.CQProvider
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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