plugo

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 9 Imported by: 7

README

plugo

A plugin system for Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugo

type Plugo struct {
	Name        string
	Listener    *net.UnixListener
	ParentName  string
	Connections map[string]*net.UnixConn
	Exposed     map[string]funcSig
}

func New

func New(plugoName string) Plugo

func (*Plugo) Call added in v0.2.0

func (plugo *Plugo) Call(plugoName, functionName string, args ...any) ([]any, bool)

func (*Plugo) Expose

func (plugo *Plugo) Expose(functionName string, function func(...any) []any)

func (*Plugo) Shutdown added in v0.2.0

func (plugo *Plugo) Shutdown()

func (*Plugo) ShutdownOnParentShutdown added in v0.2.0

func (plugo *Plugo) ShutdownOnParentShutdown(pingRate int)

func (*Plugo) StartChild

func (plugo *Plugo) StartChild(path string)

Jump to

Keyboard shortcuts

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