netview

package
v1.3.112 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package netview pkg/tpviz/netview/embed_on.go c3-app-rewards

Package netview pkg/tpviz/netview/netview.go c3-app-rewards

Package netview embeds the WebGL graph view (cmd/netview) as a js/wasm module of its own, about 1 MB gzipped, so every build serves it. Rebuild it with `make netview-wasm`; `make check-netview-wasm` fails when it is stale.

Index

Constants

This section is empty.

Variables

View Source
var ETag = func() string {
	h := sha256.Sum256(WasmGz)
	return `"` + hex.EncodeToString(h[:8]) + `"`
}()

ETag names this build of the module.

ExecJS is the loader for WasmGz. The module is built with the toolchain that wasmhv.WasmExecJS comes from.

View Source
var WasmGz []byte

WasmGz is the module, gzipped.

Functions

func ServeExecJS

func ServeExecJS(w http.ResponseWriter, _ *http.Request)

ServeExecJS answers a GET for the loader.

func ServeWasm

func ServeWasm(w http.ResponseWriter, r *http.Request)

ServeWasm answers a GET for the module, gzipped as it is stored, or inflated for a client that does not accept gzip.

Types

This section is empty.

Jump to

Keyboard shortcuts

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