Moonshark/core/workers/job.go
2025-03-06 06:13:53 -06:00

15 lines
417 B
Go

package workers
// JobResult represents the result of a Lua script execution
type JobResult struct {
Value any // Return value from Lua
Error error // Error if any
}
// job represents a Lua script execution request
type job struct {
Bytecode []byte // Compiled LuaJIT bytecode
Params map[string]any // Parameters to pass to the script
Result chan<- JobResult // Channel to send result back
}