server

package
v0.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 38 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server serves Pencode workspaces over a binary byte stream. It has no dependency on the engine's rendering, input, ECS or window packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(parent context.Context, conn io.ReadWriteCloser, options Options) error

Serve preserves wire order for document mutations. Long operations run in a bounded service pool; cancellation and ordinary file edits keep flowing.

func ServeWebSocket

func ServeWebSocket(parent context.Context, listener net.Listener, token string, options Options) error

ServeWebSocket owns listener and serves independent authenticated sessions at /ws. Cancellation closes hijacked connections and waits for their services.

Types

type Options

type Options struct {
	// Empty selects ~/.pencode/extensions on the server host.
	ExtensionDirectory string
	// Empty selects the server user's system config directory/pencode/resources.
	ConfigurationDirectory string
}

Directories

Path Synopsis
Package extensionhost owns extension discovery, registration and files.
Package extensionhost owns extension discovery, registration and files.
Package workspace owns filesystem roots and versioned documents without GUI dependencies.
Package workspace owns filesystem roots and versioned documents without GUI dependencies.

Jump to

Keyboard shortcuts

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