Documentation
¶
Index ¶
- func ClearLog(fs api.FS, file string) error
- func Log(fs api.FS, name string, level string, entry string) error
- func Module(ctx context.Context) common.Module
- func RegisterLoggers(vm *quickjs.VM, fs api.FS, file string) error
- func RegisterModules(vm *quickjs.VM, ctx context.Context, modules iter.Seq[common.Module]) error
- func RegisterSerializers(vm *quickjs.VM) error
- func RegisterTools(vm *quickjs.VM, ctx func() context.Context, prefix string, list []common.Tool) error
- type Config
- type ConfigKey
- type RunArg
- type RunResult
- type Seed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterModules ¶
func RegisterSerializers ¶
Types ¶
type RunArg ¶
type RunArg struct {
File string `json:"file,omitempty" description:"workspace path of the script file; set exactly one of file and code"`
Code string `json:"code,omitempty" description:"script source; set exactly one of file and code"`
Comment string `` /* 222-byte string literal not displayed */
Timeout uint `` /* 164-byte string literal not displayed */
Memory uint `` /* 209-byte string literal not displayed */
AppendLogs bool `json:"appendLogs,omitempty" description:"append to the existing log file instead of starting it fresh"`
Arg json.RawMessage `` /* 174-byte string literal not displayed */
}
Click to show internal directories.
Click to hide internal directories.