vplugin

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VFuncMap

type VFuncMap map[string]VPluginFunc

type VPlugin

type VPlugin struct {
	Info    VPluginInfo
	FuncMap VFuncMap
	ValMap  VValMap
}

func NewVPlugin

func NewVPlugin(name string, version string, description string) *VPlugin

func (*VPlugin) AddVPFunc

func (vp *VPlugin) AddVPFunc(name string, f Vf) *VPlugin

func (*VPlugin) AddVPVal

func (vp *VPlugin) AddVPVal(name string, v interface{}) *VPlugin

type VPluginFunc

type VPluginFunc struct {
	Name    string
	InTypes []reflect.Type
	// contains filtered or unexported fields
}

func (VPluginFunc) Call

func (n VPluginFunc) Call(a ...interface{}) error

func (VPluginFunc) TypeCheck

func (n VPluginFunc) TypeCheck(a ...interface{}) error

type VPluginInfo

type VPluginInfo struct {
	Name        string
	Version     string
	Description string
}

type VPluginVal

type VPluginVal struct {
	Name string
	Type reflect.Type
	Val  interface{}
}

type VValMap

type VValMap map[string]VPluginVal

type Vf

type Vf interface{}

Jump to

Keyboard shortcuts

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