client

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EXTENSIONS = []string{".js", ".ts", ".jsx", ".tsx"}
View Source
var SMALLWEB_ROOT string
View Source
var SmallwebDir string

Functions

func DenoExecutable

func DenoExecutable() (string, error)

Types

type FetchInput

type FetchInput struct {
	Entrypoint string     `json:"entrypoint"`
	Port       int        `json:"port"`
	Url        string     `json:"url"`
	Headers    [][]string `json:"headers"`
	Method     string     `json:"method"`
}

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(alias string) (*Worker, error)

func (*Worker) Cmd

func (me *Worker) Cmd(args ...string) (*exec.Cmd, error)

func (*Worker) Run

func (me *Worker) Run(runArgs []string) error

func (*Worker) ServeHTTP

func (me *Worker) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WorkerEntrypoints

type WorkerEntrypoints struct {
	Http string
	Cli  string
}

Jump to

Keyboard shortcuts

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