Versions in this module Expand all Collapse all v0 v0.0.12 Jun 22, 2025 Changes in this version type Engine + func (e *Engine) Close() error + func (e *Engine) ExecuteScript(code string) (*EvalResult, error) + func (e *Engine) GetRuntime() *goja.Runtime + func (e *Engine) UpdateStepSettings(stepSettings *settings.StepSettings) error v0.0.11 Jun 9, 2025 Changes in this version + type ConsoleCapture struct + Debug func(...interface{}) + Error func(...interface{}) + Info func(...interface{}) + Log func(...interface{}) + Warn func(...interface{}) + type DatabaseOperation struct + Duration time.Duration + Error string + LastInsertId int64 + Parameters interface{} + Result interface{} + RowsAffected int64 + SQL string + Timestamp time.Time + Type string + type Engine struct + func NewEngine(appDBPath, systemDBPath string) *Engine + func (e *Engine) GetFileHandler(path string) (goja.Callable, bool) + func (e *Engine) GetGlobalState() string + func (e *Engine) GetHandler(method, path string) (*HandlerInfo, bool) + func (e *Engine) GetRepositoryManager() repository.RepositoryManager + func (e *Engine) GetRequestLogger() *RequestLogger + func (e *Engine) Init(filename string) error + func (e *Engine) SetGlobalState(jsonData string) error + func (e *Engine) StartDispatcher() + func (e *Engine) SubmitJob(job EvalJob) + type EvalJob struct + Code string + Done chan error + Handler *HandlerInfo + R *http.Request + Result chan *EvalResult + SessionID string + Source string + W http.ResponseWriter + type EvalResult struct + ConsoleLog []string + Error error + Value interface{} + type ExpressRequest struct + Body interface{} + Cookies map[string]string + Headers map[string]interface{} + Hostname string + IP string + Method string + Params map[string]string + Path string + Protocol string + Query map[string]interface{} + URL string + type ExpressResponse struct + Cookies []*http.Cookie + Headers map[string]string + StatusCode int + func (r *ExpressResponse) Cookie(name, value string, options ...interface{}) *ExpressResponse + func (r *ExpressResponse) End(data ...interface{}) error + func (r *ExpressResponse) Json(data interface{}) error + func (r *ExpressResponse) Redirect(args ...interface{}) error + func (r *ExpressResponse) Send(data interface{}) error + func (r *ExpressResponse) Set(name, value string) *ExpressResponse + func (r *ExpressResponse) Status(code interface{}) *ExpressResponse + type HTTPRequest struct + Body interface{} + Headers map[string]string + Method string + Query map[string]interface{} + Timeout int + URL string + type HTTPResponse struct + Body string + Error string + Headers map[string]string + JSON interface{} + OK bool + Status int + StatusText string + URL string + type HandlerInfo struct + ContentType string + Fn goja.Callable + Options map[string]interface{} + type LogEntry struct + Data interface{} + Level string + Message string + Timestamp time.Time + type RequestLog struct + Body string + DatabaseOps []DatabaseOperation + Duration time.Duration + EndTime time.Time + Error string + Headers map[string]interface{} + ID string + Logs []LogEntry + Method string + Path string + Query map[string]interface{} + RemoteIP string + Response string + StartTime time.Time + Status int + URL string + type RequestLogger struct + func NewRequestLogger(maxLogs int) *RequestLogger + func (rl *RequestLogger) AddDatabaseOperation(requestID string, dbOp DatabaseOperation) + func (rl *RequestLogger) AddLog(requestID, level, message string, data interface{}) + func (rl *RequestLogger) ClearLogs() + func (rl *RequestLogger) FinishRequest(requestID string, status int, response string, err error) + func (rl *RequestLogger) GetAllRequests() []*RequestLog + func (rl *RequestLogger) GetRecentRequests(count int) []*RequestLog + func (rl *RequestLogger) GetRequestByID(requestID string) (*RequestLog, bool) + func (rl *RequestLogger) GetStats() map[string]interface{} + func (rl *RequestLogger) RequestLoggerMiddleware(next http.HandlerFunc) http.HandlerFunc + func (rl *RequestLogger) StartRequest(r *http.Request) *RequestLog + type ResponseRecorder struct + func (rr *ResponseRecorder) Write(b []byte) (int, error) + func (rr *ResponseRecorder) WriteHeader(status int)