pluginargs

package
v0.0.0-...-dcdb2a0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pluginargs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

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

Cleanup can be used to register cleanup functions.

func (*Cleanup) Close

func (c *Cleanup) Close() error

func (*Cleanup) Do

func (c *Cleanup) Do(f func())

Do registers a cleanup function that will be called when the plugin RPC call is complete.

type Internal

type Internal struct {
	Broker  *plugin.GRPCBroker
	Mappers []*argmapper.Func
	Cleanup *Cleanup
}

Internal is a struct that is available to mappers. This is an internal-only type that is not possible for plugins to register for since it is only exported in an internal package.

Jump to

Keyboard shortcuts

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