Documentation
¶
Index ¶
Constants ¶
View Source
const ByPassPackageCode = false
View Source
const Code = `` /* 517-byte string literal not displayed */
View Source
const HandlersReference = `` /* 186-byte string literal not displayed */
Variables ¶
View Source
var EmptyLazyData = lazydata.LazyDataBytes([]byte("{}"))
Functions ¶
func BuildLuazExecutorBuilder ¶
func BuildLuazExecutorBuilder(app xtypes.App) (xtypes.ExecutorBuilder, error)
Types ¶
type LuaContextOptions ¶
type LuaH ¶
func (*LuaH) HandleAction ¶
func (l *LuaH) HandleAction(event *xtypes.ActionEvent) error
func (*LuaH) HandleHTTP ¶
func (*LuaH) RemoveCloser ¶
type LuaStatePool ¶
type LuaStatePool struct {
// contains filtered or unexported fields
}
LuaStatePool implements a pool of lua.LState objects.
func NewLuaStatePool ¶
func NewLuaStatePool(opts LuaStatePoolOptions) *LuaStatePool
NewLuaStatePool creates a new LuaStatePool with the specified options.
func (*LuaStatePool) CleanupExpiredStates ¶
func (p *LuaStatePool) CleanupExpiredStates()
func (*LuaStatePool) Close ¶
func (p *LuaStatePool) Close()
Close closes all Lua states in the pool.
func (*LuaStatePool) Get ¶
func (p *LuaStatePool) Get() (*LuaH, error)
func (*LuaStatePool) GetDebugData ¶
func (p *LuaStatePool) GetDebugData() map[string]any
func (*LuaStatePool) Put ¶
func (p *LuaStatePool) Put(L *LuaH) error
Put returns a lua.LState to the pool.
type LuaStatePoolOptions ¶
type LuaStatePoolOptions struct {
MaxSize int
MinSize int
MaxOnFlight int
Ttl time.Duration
InitFn func() (*LuaH, error)
}
LuaStatePoolOptions defines the configuration for a new LuaStatePool.
type LuazExecutor ¶
type LuazExecutor struct {
// contains filtered or unexported fields
}
func (*LuazExecutor) Cleanup ¶
func (l *LuazExecutor) Cleanup()
func (*LuazExecutor) GetDebugData ¶
func (l *LuazExecutor) GetDebugData() map[string]any
func (*LuazExecutor) HandleAction ¶
func (l *LuazExecutor) HandleAction(event *xtypes.ActionEvent) error
func (*LuazExecutor) HandleHttp ¶
func (l *LuazExecutor) HandleHttp(event *xtypes.HttpEvent) error
type LuazExecutorBuilder ¶
type LuazExecutorBuilder struct {
// contains filtered or unexported fields
}
func (*LuazExecutorBuilder) Build ¶
func (b *LuazExecutorBuilder) Build(opt *xtypes.ExecutorBuilderOption) (xtypes.Executor, error)
func (*LuazExecutorBuilder) Icon ¶
func (b *LuazExecutorBuilder) Icon() string
func (*LuazExecutorBuilder) Name ¶
func (b *LuazExecutorBuilder) Name() string
Click to show internal directories.
Click to hide internal directories.