plugin

package
v0.0.0-...-36118f8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cmd *exec.Cmd) (*Client, error)

func (*Client) Close

func (c *Client) Close() (err error)

func (*Client) Encode

func (c *Client) Encode(products []*entity.Product) (reply []byte, err error)

func (*Client) Ping

func (c *Client) Ping(msg string) (reply string, err error)

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) Discover

func (m *Manager) Discover(path string) error

func (*Manager) Get

func (m *Manager) Get(name string) (*Plugin, error)

type Plugin

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

func NewPlugin

func NewPlugin(pluginPath string) (*Plugin, error)

func (*Plugin) Client

func (p *Plugin) Client() (*Client, error)

func (*Plugin) Name

func (p *Plugin) Name() string

Jump to

Keyboard shortcuts

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