plugo

package module
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 12 Imported by: 7

README

plugo

A plugin library for Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown added in v0.3.2

func Shutdown()

Types

type FuncSig added in v0.3.2

type FuncSig func(...any) []any

type FunctionCall

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

type Plugo

type Plugo struct {
	Id       string
	ParentId string
	Ln       *net.UnixListener
	Exposed  map[string]FuncSig
	Conns    map[string]*net.UnixConn
}

func New

func New(Id string) Plugo

func (*Plugo) Call added in v0.2.0

func (plugo *Plugo) Call(plugoId, functionName string, args ...any) ([]any, error)

func (*Plugo) Expose

func (plugop *Plugo) Expose(functionName string, function FuncSig)

func (*Plugo) ShutdownIfParentDies added in v0.3.7

func (plugo *Plugo) ShutdownIfParentDies(ms int)

Pings the parent once every ms milliseconds, if no response is received

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