pool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(name string, val interface{}) func(*lua.LState) error

func Source

func Source(r io.Reader, name ...string) func(*lua.LState) error

func Type

func Type(name string, val interface{}) func(*lua.LState) error

func Value

func Value(name string, val interface{}) func(*lua.LState) error

Types

type LuaPool

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

func NewLuaPool

func NewLuaPool(opt ...lua.Options) *LuaPool

func (*LuaPool) Close

func (p *LuaPool) Close() error

func (*LuaPool) DoFile

func (p *LuaPool) DoFile(file string) error

func (*LuaPool) DoString

func (p *LuaPool) DoString(source string) error

func (*LuaPool) Get

func (p *LuaPool) Get() *lua.LState

func (*LuaPool) Group

func (p *LuaPool) Group(l int) (result []*lua.LState)

func (*LuaPool) Preload

func (p *LuaPool) Preload(load ...func(*lua.LState) error) *LuaPool

func (*LuaPool) Put

func (p *LuaPool) Put(L *lua.LState)

Jump to

Keyboard shortcuts

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