lua

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: AGPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Name  string
	Path  string
	Debug bool
}

Options struct

type Plugin

type Plugin struct {
	plugin.Plugin

	Options       *Options
	Configuration configuration
}

Plugin struct

func New

func New(options *Options) (*Plugin, error)

New init plugin

func NewPlugin

func NewPlugin(options *Options, c plugin.Plugin) (*Plugin, error)

NewPlugin ...

func (*Plugin) Close

func (p *Plugin) Close() error

func (*Plugin) GetConfiguration

func (p *Plugin) GetConfiguration() interface{}

GetConfiguration return configuration

func (*Plugin) GetName

func (p *Plugin) GetName() string

GetName return plugin name

func (*Plugin) GetVersion

func (p *Plugin) GetVersion() string

func (*Plugin) Init

func (p *Plugin) Init() error

Init plugin, run after configure

func (*Plugin) LoadPlugins added in v0.2.0

func (p *Plugin) LoadPlugins(state *lua.LState)

func (*Plugin) NewState added in v0.3.0

func (p *Plugin) NewState() *lua.LState

func (*Plugin) SetValue

func (p *Plugin) SetValue(state *lua.LState, name string, value interface{})

func (*Plugin) Structure added in v0.2.0

func (p *Plugin) Structure() error

func (*Plugin) Try added in v0.2.0

func (p *Plugin) Try(state *lua.LState, name string) (bool, error)

Jump to

Keyboard shortcuts

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