canvas

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package canvas embeds the CogOS canvas view and exposes it as a net/http handler.

The canvas view is a single static HTML file with no build step. It provides an infinite-canvas spatial interface with draggable nodes, real-time chat, and CogDoc visualization. It is served at GET /canvas by the v3 kernel daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes() []byte

Bytes returns the raw canvas HTML.

func Handler

func Handler() http.Handler

Handler returns an http.Handler that serves the canvas HTML at any path. Callers are responsible for mounting it at the desired route (typically GET /canvas).

Types

This section is empty.

Jump to

Keyboard shortcuts

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