pluginhost

package
v1.186.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 14 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOptions

type CallOptions struct {
	AccessToken string
	Args        []string
}

CallOptions are options to a plugin call. This is exported so go based plugins can use the type.

type Host

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

Host is an object consumers can retrieve doit information from.

func NewHost

func NewHost(pluginPath string) (*Host, error)

NewHost builds an instance of Host.

func (*Host) Call

func (h *Host) Call(method string, args ...string) (string, error)

Call a method on the plugin.

Jump to

Keyboard shortcuts

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