plugin_shared_library

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PluginSuffix = ".cbus.so"

PluginSuffix is the plugin file suffix.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadedPlugin

type LoadedPlugin struct {
	cbus_plugin.Plugin
	cbus_plugin.PluginResolver
	PluginStat
	// contains filtered or unexported fields
}

LoadedPlugin contains a loaded Go plugin.

func LoadPluginSharedLibrary

func LoadPluginSharedLibrary(
	ctx context.Context,
	le *logrus.Entry,
	bus bus.Bus,
	pluginPath string,
) (*LoadedPlugin, error)

LoadPluginSharedLibrary loads a plugin from a file.

func (*LoadedPlugin) Close

func (l *LoadedPlugin) Close()

Close closes the loaded plugin.

type PluginStat

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

PluginStat contains plugin file stats.

func NewPluginStat

func NewPluginStat(filePath string) (*PluginStat, error)

NewPluginStat stats a plugin file.

func (*PluginStat) Equal

func (s *PluginStat) Equal(other *PluginStat) bool

Equal compares two plugin stats.

func (*PluginStat) GetBinarySize

func (s *PluginStat) GetBinarySize() int64

GetBinarySize returns the binary size.

func (*PluginStat) GetModificationTime

func (s *PluginStat) GetModificationTime() time.Time

GetModificationTime returns the modification time.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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