process

package
v0.0.0-testrgm6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(pluginRegistry registry.Service) *Manager

func ProvideService

func ProvideService(pluginRegistry registry.Service) *Manager

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

func (*Manager) Start

func (m *Manager) Start(ctx context.Context, pluginID string) error

func (*Manager) Stop

func (m *Manager) Stop(ctx context.Context, pluginID string) error

type Service

type Service interface {
	// Start executes a backend plugin process.
	Start(ctx context.Context, pluginID string) error
	// Stop terminates a backend plugin process.
	Stop(ctx context.Context, pluginID string) error
}

Jump to

Keyboard shortcuts

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