plugo

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 10 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 FunctionCall

type FunctionCall struct {
	StructName   string
	FunctionName string
	Args         []any
}

type Plugo

type Plugo struct {
	Name             string
	Addr             string
	ParentAddr       string
	Exposed          map[string]any
	RegisteredPlugos map[string]string
}

func New

func New(name string) Plugo

func (*Plugo) CallFunc

func (p *Plugo) CallFunc(functionName, structName, plugoName string, args []any, response *any) error

func (*Plugo) Expose

func (p *Plugo) Expose(structName string, Struct any)

func (*Plugo) StartChild

func (p *Plugo) StartChild(path string)

type PlugoAddr

type PlugoAddr struct {
	PlugoAddr string
}

type PlugoName

type PlugoName struct {
	PlugoName string
}

Jump to

Keyboard shortcuts

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