pluginhost

package
v1.105.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 13

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