worker

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSource

func ValidateSource(source string) error

Types

type KVReader

type KVReader interface {
	KV(bucket string) []model.KVEntry
}

type Request

type Request struct {
	Path string `json:"path"`
}

type Response

type Response struct {
	Status int    `json:"status"`
	Body   string `json:"body"`
}

type Runtime

type Runtime struct {
	KV KVReader
}

func (Runtime) Run

func (r Runtime) Run(script model.WorkerScript, req Request) (Response, error)

Jump to

Keyboard shortcuts

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