workerd

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(src string, dst string) error

CopyDirectory copies a whole directory recursively

func Exists

func Exists(filePath string) bool

func File

func File(src, dst string) error

File copies a single file from src to dst

func GetFreePort

func GetFreePort() (port int, err error)

GetFreePort asks the kernel for a free open port that is ready to use.

Types

type Workerd

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

func NewWorkerd

func NewWorkerd(ctx context.Context, api api.Scheduler, ts *tunclient.Services, nodeId, path string) (*Workerd, error)

func (*Workerd) Close

func (w *Workerd) Close() error

func (*Workerd) Delete

func (w *Workerd) Delete(ctx context.Context, projectId string) error

func (*Workerd) Deploy

func (w *Workerd) Deploy(ctx context.Context, project *types.Project) error

func (*Workerd) Query

func (w *Workerd) Query(ctx context.Context, ids []string) ([]*types.Project, error)

func (*Workerd) RestartProjects

func (w *Workerd) RestartProjects(ctx context.Context)

RestartProjects reinitialized and synchronizes the worker's projects.

func (*Workerd) Update

func (w *Workerd) Update(ctx context.Context, project *types.Project) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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